Jump to content

Problem with:How to move Prestashop from localhost to domain (or vice versa)


Recommended Posts

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

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

I made it but I get this message now when opening site:

Internal Server Error

The 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

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

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

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