WHIR | BLOGS | WEB HOST NEWS | FIND WEB HOSTS | RESELLER HOSTING | MAGAZINE | WHIR TV | NEWSLETTER | rss feeds
find web hosts at web host industry review Jobs | Events | Sitemap | Search 


More Web Hosting Articles  Web Hosting Specials RSS Feed 

 
Previous Article: How to Check the Disk Space on a Linux Server
 
Next Article: BQInternet.com Remote Backup solution
 





How to Move a Large Forum Between Servers

Prerequisite: Change the DNS TTL values on the old server for your forums domain to 600 or 900 for faster DNS cutover. This should be done at least 24 hours in advance of the move.

   
Let Rackspace make the difference with reliable managed hosting solutions backed by Fanatical Support.™ 100% Network Uptime Money-Back Guar., 1-hour hardware replacement, 24/7 LIVE, MS and LNX certified technical support.
 
Moving a Web site with large databases is a pain. In our case we were moving a forum to a new server. Both servers run cPanel and WHM on the back end. A first effort to move the entire site with the built-in WHM site-moving tool failed because of the large database attached to the account. Backing up the database was not a problem, but using an automated process to restore just timed out. The next thing we tried was generating a full backup from cPanel for the domain, moving the file over and restoring it from backup via WHM. The same problem appeared and the process failed due to time-out issues. But this time the domain except for the database was fully restored. All file permissions, folder settings, DNS and other settings were ready to go. The database itself was created, but of course incomplete.
 
We decided to use a different approach. Instead of working with a database dump we decided to copy the database files themselves. Here are the steps that worked for us:
 
On the old Server
 
1) Close the forums
2) Stop MySQL (logged in as root to the server)
 
service mysql stop
 
 3) Switch to the location of all MySQL databases. Copy the database files to your backup directory.
 
cd /var/lib/mysql
cp -r /username_databasename /username_databasename
 
4) Restart MySQL
 
service mysql start
 
5) Switch to your backup directory
 
cd /backup
 
6) TAR the database directory for better transfer to the new server
 
tar cf forumsdatabase.tar username_databasename
 
7) Copy file to current Forum Folder
 
cp username_databasename /home/username/public_html/username_databasename.tar
 
On the new Server
 
8) Switch to the new server and SSH as root into the server. Switch to your downloads folder and download the forums database
 
wget http://www.example.com/username_databasename.tar
 
9) Untar the file
 
tar xf username_databasename.tar
 
10) Stop MySQL
 
service mysql stop
 
11) Back up old database from the earlier efforts to restore the database
 
cd /var/lib/mysql
mv username_databasename username_databasename.saved
 
12) Copy the database from the downloads folder into the final destination
 
cp -pfr /downloads/username_databasename username_databasename
 
13) Reset permissions to make sure the database files are accessible by MySQL
 
chown mysql username_databasename
chgrp mysql username_databasename
 
14) Restart MySQL
 
service mysql start
 
You are pretty much done at this point. Test the forum via IP address for functionality. Open the forum when everything looks good. On the old server change the IP address in DNS to point to the new server. Then change the DNS server information on the registry level to point to the DNS servers of the new server. Within 30 minutes the domain name should point to the new server where the forum is hosted. Do not delete the old domain account from the old server just yet. I recommend leaving it online for another 48 hours at least to make sure everyone finds the new server.
 
Your mileage might vary, but for us this worked just fine when moving a forum with a 1 GB database. Please make sure you have appropriate access to both servers and that you are comfortable in executing the steps described below. Be aware that stopping MySQL will affect all Web sites on a server that use MySQL. And, of course, use the help of an experienced administrator if needed.



Print this Page       Email this Page        Add to: | del.icio.us | digg


WHIR.com Sponsored Links

> Server Beach: $75 Dedicated Servers & 99.999% Uptime Guaranteed
> DataPipe: Managed Hosting Services
> Rackspace: Hosting Solutions Built to Your Needs
> Website Source: Powerful Website hosting starting at $6.85
> SuperbHosting.Net: Dedicated Servers-$59m & Cheap Web Hosting-$2.50/m
> iWeb: Quality Servers. 3000GB of traffic for only $69
> The Planet: Dedicated servers and managed hosting solutions
> SERVER4YOU: Dedicated servers – starting $29!
> FindSSL.com: Find SSL Certificates, SSL News and EV SSL Information
 


 


request a quote for web hosting
Web Hosting Directory

 Personal Web Hosting
  > Budget Web Hosting
  > Blog Hosting
  > Photo Album Hosting
  > Domain Registrars

 Small Business Hosting
  > Ecommerce Hosting
  > Windows Web Hosting
  > Database Web Hosting
  > Email Hosting Solutions
  > Adult Web Site Hosting
  > SSL Certificates

 Premium Domains

 Reseller Hosting
  > Web Host Automation
  > Private Label Hosting
  > Services for Web Host
  > Advertising Agencies
  > Wholesale Domains

 Dedicated Servers
  > Virtual Private Servers
  > Game Servers, Hosting

 Managed Hosting
  > Application Hosting
  > Complex Web Hosting
  > Data Center Space
  > Grid Hosting
  > Compliance Hosting

 Content Delivery (CDN)

 Worldwide Web Hosts
  > Asian Web Hosting
  > Australian Web Hosting
  > Canadian Web Hosting
  > Caribbean Web Hosting
  > China Web Hosting
  > Danish Web Hosting
  > European Web Hosting
  > German Web Hosting
  > Hong Kong Hosting
  > India Web Hosting
  > New Zealand Hosting
  > Panama Web Hosting
  > Singapore Web Hosting
  > UK, Irish Web Hosting
  > USA Web Hosts

 Web Hosting Search

 



WHIR NEWSLETTER SIGN-UP | MANAGE SUBSCRIPTIONS | WHIR RSS FEEDS
Name:
Email:
Password:
theWHIR Blog Email Update
Magazine
Daily News
Find Web Hosts
Occupation:
Company Type:

Find Web Hosts | Reseller Hosting | Personal Web Hosting | Small Business Web Hosting | Dedicated Servers | Managed Hosting | Adult Web Hosting


About WHIR | Online Advertising | Print Advertising | Print Subscription | Email Newsletters | RSS Feeds
 
Submit News | Privacy Policy | Buy Reprints

Web Host Industry Review, Inc. is not responsible for the content of comments submitted by our users.

  © Copyright Web Host Industry Review, Inc.