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:
1 |
SELECT * FROM core_config_data WHERE path = 'web/unsecure/base_url' OR path = 'web/secure/base_url'; |
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.
1 |
UPDATE core_config_data SET value = 'http://www.totalpet.nl' WHERE path LIKE 'web/%/base_url'; |
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