How to duplicate Magento website?

I modify Magento website in my localhost computer. Then I want to upload it to web hosting. So may I know how to duplicate the entire website for online usage?

3 answers

Profile photo of thangnn1510 0.00 $tone March 5, 2011
Public

Dear victorlai!

Thanks for contacting us. Regarding your problem:

I modify Magento website in my localhost computer. Then I want to upload it to web hosting. So may I know how to duplicate the entire website for online usage?

Please do the following:

-- Backup your local database:

Go to admin -> system -> Tools -> backup and then click to backup.

-- Download the database backup file and import to your host database.

-- Go to [prefix]core_config_data table and find 2 records have paths:

web/unsecure/base_url
web/secure/base_url

change their value (ex: 127.0.0.1) to your site link: ex: http://www.example.com.

-- Move all your source code from local to the host.

-- Find this code:

<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[test]]></username>
<password><![CDATA[test]]></password>
<dbname><![CDATA[test_test]]></dbname>
<active>1</active>
</connection>

app\etc\local.xml. test, test, test_test are for ours. Please change them to your MySQL info.

Refresh and see the result.

Please tell us if you have news.

Regards!

#1
Profile photo of Victor Lai 0.00 $tone March 4, 2013
Public

I try to use the method that u teach. But what I get is: the duplicated website without product photos, CSS and it look like just a plain website. >> http://www.onemelaka.com/magento_test_0304/

And this is the original: http://www.onemelaka.com/magento1/

Please let me know what part I was wrong. TQ.

Dear victorlai!

Thanks for contacting us. Regarding your problem:

Please do the following:

-- Backup your local database:

Go to admin -> system -> Tools -> backup and then click to backup.

-- Download the database backup file and import to your host database.

-- Go to [prefix]core_config_data table and find 2 records have paths:

web/unsecure/base_url
web/secure/base_url

change their value (ex: 127.0.0.1) to your site link: ex: http://www.example.com.

-- Move all your source code from local to the host.

-- Find this code:

<connection>
<host><=!=[=C=D=A=T=A=[localhost]=]=></host>
<username><=!=[=C=D=A=T=A=[test]=]=></username>
<password><=!=[=C=D=A=T=A=[test]=]=></password>
<dbname><=!=[=C=D=A=T=A=[test_test]=]=></dbname>
<active>1</active>
</connection>

app\etc\local.xml. test, test, test_test are for ours. Please change them to your MySQL info.

Refresh and see the result.

Please tell us if you have news.

Regards!

#2

Please login or Register to Submit Answer

Written By

Comments