Cpanel Migration : Migrating using OLD HDD

1 – mount old drive as /old /old/usr /old/var etc.

Most servers should be:

mkdir /old

mount /dev/sdb1 /old
mount /dev/sdb2 /old/var
mount /dev/sdb3 /old/usr
mount /dev/sdb7 /old/home

But you may need to figure out exactly which /dev/sdbX it is.

Then start copying

cp -R –reply=yes -p /old/etc/proftpd/* /etc/proftpd
cp -R –reply=yes -p /old/etc/valiases/* /etc/valiases
cp -R –reply=yes -p /old/etc/vfilters/* /etc/vfilters
cp -R –reply=yes -p /old/etc/userdomains /etc
cp -R –reply=yes -p /old/usr/local/cpanel/3rdparty/mailman/* /usr/local/cpanel/3rdparty/mailman
cp -R –reply=yes -p /old/usr/local/frontpage/* /usr/local/frontpage
cp -R –reply=yes -p /old/usr/share/ssl/* /usr/share/ssl
cp -R –reply=yes -p /old/var/cpanel/* /var/cpanel
cp -R –reply=yes -p /old/var/lib/mysql/* /var/lib/mysql
cp -R –reply=yes -p /old/var/log/bandwidth/* /var/log/bandwidth
cp -R –reply=yes -p /old/var/named/* /var/named
cp -R –reply=yes -p /old/var/spool/cron/* /var/spool/cron
cp -R –reply=yes -p /old/etc/ips /etc/ips
cp -R –reply=yes -p /old/etc/group /etc/group
cp -R –reply=yes -p /old/etc/localdomains /etc/localdomains
cp -R –reply=yes -p /old/etc/named.conf /etc/named.conf
cp -R –reply=yes -p /old/etc/passwd /etc/passwd
cp -R –reply=yes -p /old/etc/proftpd.conf /etc/proftpd.conf
cp -R –reply=yes -p /old/etc/quota.conf /etc/quota.conf
cp -R –reply=yes -p /old/etc/rndc.conf /etc/rndc.conf
cp -R –reply=yes -p /old/etc/secondarymx /etc/secondarymx
cp -R –reply=yes -p /old/etc/shadow /etc/shadow
cp -R –reply=yes -p /old/etc/wwwacct.conf /etc/wwwacct.conf
cp -R –reply=yes -p /old/usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf
cp -R –reply=yes -p /old/usr/local/cpanel/3rdparty/interchange/interchange.cfg /usr/local/cpanel/3rdparty/interchange/interchange.cfg
cp -R –reply=yes -p /old/home/* /home

chown -R mysql:mysql /var/lib/mysql

/scripts/restartsrv httpd
/scripts/restartsrv exim
/scripts/restartsrv mysql
/scripts/enablefileprotect
/scripts/mailperm

Important things to check

1 – rndc status should show all the zones. If it only shows 8, or nothing, then run /scripts/fixndc

2 – You should reboot the server and check to see if sample sites are loading. This is quite important!! If not, then fix/diagnose.

3 – Recompile APACHE + PHP With required modules.

4 – Install Fantastico, zend, and ioncube.

5- If you are copying from an old cpanel install, you’ll have to run /scripts/convert2maildir as well.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s