Cunn Posted May 22, 2014 Share Posted May 22, 2014 Hi! I use prestashop 1.6 and i decided move my shop from localhost to domain. I followed this tutrial http://blog.premium-templates.eu/how-to-move-prestashop-from-localhost-to-domain-or-vice-versa but I get stuck on point #5 5) Edit /config/settings.inc.php and change details for connection to new database (usually you have to change _DB_SERVER_, _DB_NAME_, _DB_USER_, _DB_PASSWD_).In filemenager I went to folder CONFIG. I opened settings.inc.php but there isn't any of these positions : _DB_SERVER_, _DB_NAME_, _DB_USER_, _DB_PASSWD_Do U know how to resolve it ? Link to comment Share on other sites More sharing options...
El Patron Posted May 23, 2014 Share Posted May 23, 2014 config/settings.inc.php should look like this, changei the fields db_server db_name db_user db_pwd <?php define('_DB_SERVER_', 'db_server'); define('_DB_NAME_', 'db_name'); define('_DB_USER_', 'db_user'); define('_DB_PASSWD_', 'db_pwd'); define('_DB_PREFIX_', 'ps_'); define('_MYSQL_ENGINE_', 'InnoDB'); define('_PS_CACHING_SYSTEM_', 'CacheMemcache'); define('_PS_CACHE_ENABLED_', '0'); define('_MEDIA_SERVER_1_', ''); define('_MEDIA_SERVER_2_', ''); define('_MEDIA_SERVER_3_', ''); define('_COOKIE_KEY_', 'xwuAW8C02CtPcSE72Fw1Wi8VJ2JwvOscmWpfj90ijbwa1XFyM0GcNOmE'); define('_COOKIE_IV_', 'dcojgrSQ'); define('_PS_CREATION_DATE_', '2014-05-18'); define('_PS_VERSION_', '1.6.0.6'); define('_RIJNDAEL_KEY_', 'yJS1JwbP4wZDfdn0kkY7VwOcTMF5t7mX'); define('_RIJNDAEL_IV_', 'tpBd2xLx1jqDTwpHse5eDA=='); Link to comment Share on other sites More sharing options...
Cunn Posted May 23, 2014 Author Share Posted May 23, 2014 I made it but I get this message now when opening site: Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Link to comment Share on other sites More sharing options...
El Patron Posted May 23, 2014 Share Posted May 23, 2014 turn on errors to determine underlying error config/defines.inc.php define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
NemoPS Posted May 23, 2014 Share Posted May 23, 2014 I have a tut for this, in case you want to check it out http://nemops.com/prestashop-migration-local-live/ 1 Link to comment Share on other sites More sharing options...
Cunn Posted May 23, 2014 Author Share Posted May 23, 2014 Ok so we have succeeded! I don't know how but it works I followed your advices. In the beginning nothing changed. I cleaned cache and history - and still nothing. However the admin panel was working (!?).I went in seo & url and changed Set shop URL on quite different adresses. Of course, jumped out error (but different. I Resigned, I wrote again correctly (as it was). I went to the website and guess what ? It's working! Thanks for Your help guys! BTW I changed as El Patron wrote: define('_PS_MODE_DEV_', true); but Nemo1 didn't mention about this in his tutorial. So sure I leaved as 'true" or get back to 'false' ? Link to comment Share on other sites More sharing options...
El Patron Posted May 23, 2014 Share Posted May 23, 2014 Ok so we have succeeded! I don't know how but it works I followed your advices. In the beginning nothing changed. I cleaned cache and history - and still nothing. However the admin panel was working (!?). I went in seo & url and changed Set shop URL on quite different adresses. Of course, jumped out error (but different. I Resigned, I wrote again correctly (as it was). I went to the website and guess what ? It's working! Thanks for Your help guys! BTW I changed as El Patron wrote: but Nemo1 didn't mention about this in his tutorial. So sure I leaved as 'true" or get back to 'false' ? always run 'false' unless you are debugging, else if some minor issue, i.e. warning/notice your visitors will see this..and run away...and never return Link to comment Share on other sites More sharing options...
NemoPS Posted May 24, 2014 Share Posted May 24, 2014 Well yes, I didn't mention it because it's usually not needed; only when you want to debug Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now