How to Migrate EHCP Server


ehcp login

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

  1. Backup vhosts files
    # tar -czvf vhosts.tar.gz /var/www/vhosts
  2. Backup Courier mail files
    # tar -czvf vmail.tar.gz /home/vmail
  3. 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

  1. Install EHCP
    # wget
    # tar zxvf ehcp_latest.tgz
    # cd ehcp
    # ./
  2. Restore vhosts files
    # cd /var/www
    # tar zxvf /root/vhosts.tar.gz
  3. Restore Courier mail files
    # cd /home
    # tar zxvf /root/vmail.tar.gz
  4. Login to http://your_ip/phpmyadmin as admin and drop ehcp database
  5. Restore MySQL databases and flush privileges.
    # mysql -u user -ppassword < /root/databases.sql
    # mysql -u user -ppassword
    mysql> flush privileges;
    mysql> quit;
  6. Login to EHCP panel, and modify IP address in Options page.
  7. Reboot and done.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.