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
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!
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_urlchange 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!
Hi victorlai,
when view HTML source of your site I see that the paths to your css files are wrong, For example
http://www.onemelaka.com/magento_tes…css/styles.css
it should be
http://www.onemelaka.com/magento_tes…css/styles.css
You might change the baseurl to http://www.onemelaka.com/magento_test_0304/ that I hope would help !