Jump to content

[Solved] Installing to PrestaShop to new Server


Recommended Posts

Hi everybody
I have problem with transferring the database and the main PrestaShop files from my old hosting to my new hosting godaddy.
First I installed the prestaShop to my new hosting for try and next the create the database everything work perfect.But The store is empty :)
Now second step I tried the export the old database with mysql and tried the import to new database to my new mysql but I got error.
After I tried to backup the database from the old one and transfer to new database with restore it with changing the name it worked. After i tried the copy prestashop files to my new hosting directory with over-right all the files it copied. But when i open the web site all my categories okey but i can't go subcategories it say not found and no pictures and when I enter my admin account I can't login it say invalid Email or password.I tried the put old hosting account username and password still not worked.After i tried the PrestaShop installation to over the old files.I put the install folder to old files directory and I tried the install it but it say the database is already in there you have to create new database or changed the prefix. I think my main problem is Prestashop not communication with database some database names, usernames and passwords.My questions are
1.When I created the new database on the new hosting account I have to use the same username and the password from the old database?(I have problem with this because my old username is to long and its not fit the space to new mysql. and the password it say one uppercase old one is everything is lowercase)
2.First I have to copy the all files to new hosting and after created the database and installed the prestashop?
I messed up everthing, please somebody explain what are the steps?
THANKS

Link to comment
Share on other sites

Topic moved

After copying all the files and database from one host to another, you need to modify config/settings.inc.php and update your database settings. If your store has changed from being in the root directory to a subdirectory or vice versa, you'll need to update __PS_BASE_URI__ too. If you do that, you'll need to regenerate your .htaccess file for the images to work.

Link to comment
Share on other sites

Everything it's looks okay, except pictures and subcategories.I can't see any pictures and when I click subcategories it's say not found.I deleted all prestashop files on the new server and I copied all old files to new server again and change the setting from settings.inc.php to new database settings.
I can login to prestashop with new passwords no problem.I don't know htaccess file we have to edit this one too? and how?
Is there any idea how can I fix pictures and the subcategories problem.
Here is my Website
http://www.nycbicycleshop.com

Link to comment
Share on other sites

All your friendly URLs are broken, so it is probably your .htaccess file that is broken. There should be a .htaccess file in the root directory of Prestashop. If there is, make a backup of it. If there isn't, create a blank .htaccess file and give it chmod 666 permissions. Then go to Tools > Generators and click "Generate .htaccess file". If you have any more problems, check your backed up .htaccess file and copy over any code that is missing in the generated .htaccess file.

Link to comment
Share on other sites

  • 2 months later...

First backup your old database and the main prestashop files and delete the database and create another fresh one and import your old data to new database.Clean the main root directory from hosting account put your old prestashop files to root directory and go to your hosting account file manager or cpanel and find the config folder settings.inc.php and put your new database informations. After try to login the admin panel and go to tools and create htaccess file and you okey.
Any problem reply again.

Link to comment
Share on other sites

I tried several times, but I can't login to the backend. When I click "login" in the admin panel, I get no error, but it redirects back to the login screen.
The user is recognized, but don't know why, instead opening the admin panel, I get back the login screen.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...