Jump to content
mehnihma

Moving Prestahop To Another Server

Recommended Posts

Hi

 

I have big problem when I moved my server to another location, PS 1.5.1

 

I had domain.com/shop and changed everything to domain.com

 

now in BO when I got to modules I get:

 

Notice: Constant _MEDIA_SERVER_1_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 3 Notice: Constant _MEDIA_SERVER_2_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 4 Notice: Constant _MEDIA_SERVER_3_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 5 Notice: Constant _PS_CACHING_SYSTEM_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 6 Notice: Constant _PS_CACHE_ENABLED_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 7 Notice: Constant _DB_NAME_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 8 Notice: Constant _MYSQL_ENGINE_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 9 Notice: Constant _DB_SERVER_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 10 Notice: Constant _DB_USER_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 11 Notice: Constant _DB_PREFIX_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 12 Notice: Constant _DB_PASSWD_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 13 Notice: Constant _COOKIE_KEY_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 14 Notice: Constant _COOKIE_IV_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 15 Notice: Constant _RIJNDAEL_KEY_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 16 Notice: Constant _RIJNDAEL_IV_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 17 Notice: Constant _PS_VERSION_ already defined in /home/zvrko/public_html/config/settings.inc.php on line 18

 

I need help :(

Edited by mehnihma (see edit history)

Share this post


Link to post
Share on other sites

You will need to edit the settings.inc.php file and point the settings to the new location, you will also need to edit the DB and make changes to point to the new location.

 

settings.inc.php is located in the config folder.

edit ps_shop_url in the DB.

Share this post


Link to post
Share on other sites

I did that

Prestahop works and I get that error only in modules in BO

 

this is setting:

 

<?php
define('_MEDIA_SERVER_1_', '');
define('_MEDIA_SERVER_2_', '');
define('_MEDIA_SERVER_3_', '');
define('_PS_CACHING_SYSTEM_', 'CacheMemcache');
define('_PS_CACHE_ENABLED_', '0');
define('_DB_NAME_', 'dtabas');
define('_MYSQL_ENGINE_', 'InnoDB');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'zuser');
define('_DB_PREFIX_', 'ps_');
define('_DB_PASSWD_', 'FHe234525');
define('_COOKIE_KEY_', 'MB0UzjwveB6sippYAw6FqFSC0bZeNao4VviYzrKem9XP3NyksJDeKDNj');
define('_COOKIE_IV_', 'J5ZXyKiS');
define('_RIJNDAEL_KEY_', 'kWdk7XuOYZDKsQfLEIRhMHFDSGv3jzSo');
define('_RIJNDAEL_IV_', 'mHM4trFkx+oTfR7OvxWkzQ==');
define('_PS_VERSION_', '1.5.1.0');
?>

Edited by mehnihma (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More