网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > Magento
User Name
Password
 
FAQ Members List Calendar Cheap Glasses Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1   IP: 153.99.38.51
Old 2015-04-24, 04:41 AM
Raquette Lake Raquette Lake is offline
初级会员
 
Join Date: 2011-10-31
Posts: 1
Raquette Lake 现在声名狼藉
Default Migrate magento to new server / domain / database / host

Move or migrate magento to new server, domain, database, host, anything by following the steps below.

To configure your Magento with a new domain, you will need to do following steps:

- Copy whole Magento project from current server and paste it to the new server.
You can do server-to-server transfer. First, tar.gz your magento project
tar -cvf magento.tar.gz magento
Then copy it to your new server from old server
scp magento.tar.gz root@your.ip.address.here:/var/www/.

- Backup the database (Admin -> System -> Tools -> Backup)
You can also take backup through phpMyAdmin, or by mysql.
mysqldump -u user -p database > /path/to/keep/db.sql

- Logout from your old server. Login to new server.
Extract the file magento.tar.gz that you sent from old server
tar -zxvf magento.tar.gz

- Delete all directory or files that are there in cache folder
rm -rf var/cache/*

- Edit local.xml that is in magento/app/etc/local.xml and change mysql username, password, database as per new server credentials

- Import the backed up database. Before that create empty database to dump tables in it.
mysql -u root -p 'password';
create database dbname;
exit;
mysql -u root -p -d dbname < /path/to/your/db.sql

- Edit the database to change it to your new domain name. Search in core_config_data table for old domain.
select * from core_config_data where path like '%secure/base_url';
and update it with your new domain
update core_config_data set value='http://mysite.com/' where path like '%secure/base_url';
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 4 (0 members and 4 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Move X-Cart Database Tenakee Springs X-Cart 0 2015-03-31 12:55 AM
How To Secure X-Cart Tenakee Springs X-Cart 0 2015-03-31 12:52 AM
Simple Steps to Change Your Table Prefix in WordPress Abby WordPress 0 2014-04-14 03:40 PM
How to Transfer Files/Backup from Server to Server topvip 服务器环境搭建 0 2010-10-20 12:02 AM
SQL Server导出导入数据方法 topvip 服务器环境搭建 0 2009-05-06 11:04 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:48 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.