How do I transfer a local Magento install onto my live server?

后端 未结 10 1952
别跟我提以往
别跟我提以往 2020-12-07 14:58

Uploading a Magento install

I have spent a long time building a store with Magento on my local development PC.

10条回答
  •  日久生厌
    2020-12-07 15:27

    If you want to move your installation form directory to top domain or one domain to another , you need to follow this setps.

    1) Delete the content of the folder /var

    2) Change the values of the file /app/etc/local.xml There you can find your connection string data (database user, host and name).

    3) Once you got your database uploaded, 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 gonna get something like this:

    +-----------+---------+----------+-----------------------+--------------------------------------+
    | config_id | scope   | scope_id | path                  | value                                |
    +-----------+---------+----------+-----------------------+--------------------------------------+
    |         2 | default |        0 | web/unsecure/base_url | http://www.tudominio.com.ar/magento/ |
    |         3 | default |        0 | web/secure/base_url   | http://www.tudominio.com.ar/magento/ |
    +-----------+---------+----------+-----------------------+--------------------------------------+
    

    Now, change that values for your new url.

    UPDATE core_config_data SET value = 'http://www.tudominio.com.ar/' WHERE path LIKE 'web/%/base_url';
    

    If you run the first query, now you gonna get something like this:

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

    That’s all.

    For more info visit : http://webdesignergeeks.com/cms/magento/move-magento-from-local-server-to-live-server-without-fresh-installation/

提交回复
热议问题