Jump to content

Move Prestashop From Localhost To Remote Server - P1.6


Recommended Posts

Hello,

 

What are the steps to move a site from localhost to a remote server. Below are what I did so far: (but I get a 500 Error)

 

  1. I Moved all file from localhost to remote using FTP.
  2. I Exported the local database.
  3. I Created a database in remote server and imported the database.
  4. I Changed database setting in config/settings.inc.php Just this lines: 
<?php
define('_DB_SERVER_', 'localhost'); // MAYBE THIS IS WRONG??? Should I put the IP of my server?
define('_DB_NAME_', 'remoteDb');
define('_DB_USER_', 'remoteDb');
define('_DB_PASSWD_', 'x4x4x4');

I'm 100% sure the credentials for the database are the correct ones.

 

But, I just get 500 Error page. I can't access the backend.

 

What am I missing here. 

Link to comment
Share on other sites

Don't forget to enable development mode in order to see what's the error you're getting on the 500 page.

Thanks, now I see that the problem is: 

 

Fatal error: Call to undefined function apc_cache_info() in /home/example/www/classes/cache/CacheApc.php on line 39

 

My server uses xCache, then I guess that I have to turn off the APC caching and re-import the database.

Link to comment
Share on other sites

have you first installed a vanilla PrestaShop of your version on server?  This allows PrestaShop installer to check your server configuration which you can then review and resolve before you move from localhost.  This of course assuming you have not run PrestaShop on this server configuration before.

 

as for you error message above, you would need to enable apc cache on the server.  there is a hack to turn off cache

 

config/settings.inc.php

define('_PS_CACHE_ENABLED_', '0');

then you move should be able to go a little farther.

  • Like 1
Link to comment
Share on other sites

have you first installed a vanilla PrestaShop of your version on server?  This allows PrestaShop installer to check your server configuration which you can then review and resolve before you move from localhost.  This of course assuming you have not run PrestaShop on this server configuration before.

 

as for you error message above, you would need to enable apc cache on the server.  there is a hack to turn off cache

 

config/settings.inc.php

define('_PS_CACHE_ENABLED_', '0');

then you move should be able to go a little farther.

That is what I just did. I get it working right now.

 

I already cleared caches. Is there any other thing I have to do?

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...