Steps to describe Local magento to live server ?
- Copy all of your local files to server
- Delete the content of the /var folder
- Export magento database from localhost and import it in server MySQL.
- Edit app/etc/local.xml file and Change the respective attributes like (localhost, username, database name and password.)
- After import database on live, you need to make some changes.
Run this query:
SELECT * FROM core_config_data WHERE path = 'web/unsecure/base_url' OR path = 'web/secure/base_url';
you get output like this.
config_id |
scope |
scope_id |
path |
value |
5 |
default |
0 |
web/unsecure/base_url |
localhost/myproject
|
6 |
default |
0 |
web/secure/base_url |
localhost/myproject
|
Now, Run below queury to change that values for new url
UPDATE core_config_data SET value = 'http://www.yourdomainname.com/' WHERE path LIKE 'web/%/base_url';
That’s all, Hope this helps. Thanks.
0 Comment(s)