Change Magento server address

To change your magento server address or move your magento from the test environment to the live environment you have to follow the next steps:

1. Backup the folder /var inside the magento folder.

2. Delete the content of the folder /var.

3. Go to the file /app/etc/local.xml inside the Mangeto folder to change the Database credentials. More Information

4. At the live location, run the following command:

You gonna get something like this:

+-----------+---------+----------+-----------------------+--------------------------------------+
| config_id | scope   | scope_id | path                  | value                                |
+-----------+---------+----------+-----------------------+--------------------------------------+
|         2 | default |        0 | web/unsecure/base_url | http://www.pietervanos.net/magento/ |
|         3 | default |        0 | web/secure/base_url   | http://www.pietervanos.net/magento/ |
+-----------+---------+----------+-----------------------+--------------------------------------+
5.  To change the address value run the following command.

6.  When you run the first query again you will see that the database had updated his server address value from www.pietervanos.net/magento to www.totalpet.nl

+-----------+---------+----------+-----------------------+------------------------------+
| config_id | scope   | scope_id | path                  | value                        |
+-----------+---------+----------+-----------------------+------------------------------+
|         2 | default |        0 | web/unsecure/base_url | http://www.totalpet.nl/ |
|         3 | default |        0 | web/secure/base_url   | http://www.totalpet.nl/ |
+-----------+---------+----------+-----------------------+------------------------------+

Leave a Reply

Your email address will not be published. Required fields are marked *

-->