EHCP is free, open source, and awesome hosting control panel.
This guide will show you how to migrate EHCP system version 0.30.4 from Kimcil server to Maho server manually.
A. Do Backup on Kimcil Server
- Backup vhosts files
# tar -czvf vhosts.tar.gz /var/www/vhosts
- Backup Courier mail files
# tar -czvf vmail.tar.gz /home/vmail
- Backup MySQL databases
# mysqldump -u root -ppassword --all-databases > databases.sql
Transfer those 3 files to Maho server in /root folder via FTP.
B. Do Restore on Maho Server
- Install EHCP
# wget http://ehcp.net/ehcp_latest.tgz # tar zxvf ehcp_latest.tgz # cd ehcp # ./install.sh
- Restore vhosts files
# cd /var/www # tar zxvf /root/vhosts.tar.gz
- Restore Courier mail files
# cd /home # tar zxvf /root/vmail.tar.gz
- Login to http://your_ip/phpmyadmin as admin and drop ehcp database
- Restore MySQL databases and flush privileges.
# mysql -u user -ppassword < /root/databases.sql # mysql -u user -ppassword mysql> flush privileges; mysql> quit;
- Login to EHCP panel, and modify IP address in Options page.
- Reboot and done.