Jump to content

Moving from local to real server


Recommended Posts

Sorry for my ignorance. I installed prestashop on my local machine using XAMMP server. Everything worked fine, I almost finished the translation from English to Romanian, installed a new theme. But now I just want to put it online on a real server and I bought a domain. The hosting service does not allow me to have a database without some kind of prefix (something like user2450_database) but my database is simply named presta. Got any ideea about how can I change the name of the database where the shop is pointing ?

Link to comment
Share on other sites

Once your shop uploaded on the server, you'll have to edit the /config/settings.inc.php file and replace the lines :

define('__PS_BASE_URI__', '/');    // if not in the same directory from the root.
define('_DB_NAME_', 'presta');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'root');
define('_DB_PASSWD_', '');

Link to comment
Share on other sites

Once your shop uploaded on the server, you'll have to edit the /config/settings.inc.php file and replace the lines :

define('__PS_BASE_URI__', '/');    // if not in the same directory from the root.
define('_DB_NAME_', 'presta');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'root');
define('_DB_PASSWD_', '');



Thank you. I will try as soon as I will be able to log in in my Back Office. Now the backoffice says " 1. employee does not exist, or bad password"
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...