Did You Know?
Donate to TecMint

LFCS - Linux Foundation Certified SysAdmin - Exam Preparation Guide

Install EHCP (Easy Hosting Control Panel) in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

EHCP (Easy Hosting Control Panel) is an open source and very effective Hosting Control Panel that offers you to host any websites, create ftp accounts, email accounts, sub domains and so on. Ehcp is the only first hosting control panel was written using PHP programming language and available for free.

It offers all major hosting control panel features such FTP Accounts, MySQL Databases, Panel Users, Resellers, MailBox with Squirrelmail and Round Cube etc. It is the only first control panel that provides built in support for Nginx and PHP-FPM with completely throw out Apache and gives better performance for low end servers or VPS.

EHCP Features

  1. Complete php, free opensource, easily customizable and more free templaes.
  2. Unlimited resllers, user accounts, ftp accounts, email accounts, mysql and domains.
  3. Management of DNS, domains, subdomains, ftp, mysql, email etc.
  4. Domains password protected, Email forwarding, autoreply etc.
  5. Website analytics with webalizer and ftp with net2ftp.
  6. One click third party script install.
  7. User Disk quota control, SSL suport, custom http redirects, domain aliases, domain redirect.
  8. Different langauge support and template supports with few languages.
  9. Server backup and restore including files and databases.
  10. More details here.

This article will help you to install and setup Easy Hosting Control Panel on RHEL, CentOS, Fedora, Ubuntu, Linux Mint and Debian systems. Please note ehcp can be installed on a fresh installation of Linux. The ehcp installation is quite simple and easy, a new user won’t face any issues while installing it at the first time.

How to Install EHCP (Easy Hosting Control Panel)?

First, login as root user using ssh and download the latest EHCP (current available version is 0.32) source tarball package using wget command.

# wget http://www.ehcp.net/ehcp_latest.tgz

Next, extract the ehcp source tarball using following tar command.

# tar -zxvf ehcp_latest.tgz

Change to ehcp directory, then execute install.sh script.

# cd ehcp
# ./install.sh

Go through the installation setup and read the instructions carefully. The install script will install all needed packages including Apache, MySQL, PHP, Postfix and so on. During installation it will ask you to enter some information to configure services and set ehcp admin passwords. The installation setup takes up-to 50-60mins, depending upon the internet speed.

It is highly, recommended you to set a MySQL ‘root‘ password for MySQL administration.

ehcp mysql root password

Repeat MySQL password for ‘root‘ user.


Please select the best mail server configuration that suits your needs. In my case, I’ve selected ‘Internet site‘, mails are sent and receive using SMTP service.


Set the system mail domain name.


Create directories for web-based mail administration. Click on ‘Yes‘.


Create SSL certificate for POP and IMAP. Click on ‘Ok‘.


Please select your web server that automatically configured to run phpMyAdmin.


Configure phpMyAdmin database.


Set MySQL ‘root‘ password for phpMyAdmin.


Please give a phpMyAdmin password to register with database server.


Password confirmation.


Next, configure roundcube database.


Please select the database type that used by roundcube. In my scenario, I’ve selected MySQL database for roundcube.


Please provide MySQL password for roundcube.


That’s it, installation finished.


Now navigate to the Web browser window and enter IP address of your server.




Click on the link that says ‘Click here for the control panel on your server‘.


Enter ehcp login details, default admin username is ‘admin‘ and default admin password is ‘1234‘. If you’ve set new admin password during installation enter that password.


Ehcp Control Panel Dashboard.


Reference Link

Official EHCP Website

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Your name can also be listed here. Work as a Paid freelancer/writer at TecMint.
Download Free eBooks
Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

28 Responses

  1. erick says:

    dude ehcp can’t be install n cent os :) and only support debian based systems

  2. Stuart says:

    Would love an alternate installer that didn’t ask me to confirm every installation part. I have to type y-return a zillion times during the install process.
    Why not have the -y option?

  3. Unattended install is in our roadmap. You can test it by downloading ehcp.net/ehcp_yeni.tgz

    extract it, use:
    ./install.sh unattended

    ./install.sh light nattended

    or, one liner:
    wget ehcp.net/ehcp_yeni.tgz ; tar -zxvf ehcp_yeni.tgz ; cd ehcp; ./install.sh unattended light

    As you noted, we may also use -y for install.. Thanks for suggestion.

  4. fix typo:

    ./install.sh light unattended

    light install mode skips some packages which are not crucial for a hosting operation. This is new testing version of ehcp.

  5. And this is first time that I announce unattended and light install modes, even before ehcp.net itself… Your analysis of ehcp is quite good. So, I shared such a surprise for ehcp users/server admins.

  6. cinta2maret says:

    thanks for the tutorial, i’m just finding this way to use EHCP.

  7. Brandie Truocchio says:

    Keep up the good work i will return often.

  8. Mas eko says:

    succesed install, but canot login to filemanager

  9. Per Anzelius says:

    Thanks for this nice guide.

    Keep the good work up.

  10. Gyrre says:

    I followed your verry detailed installation guide but…
    When I activate one domaine its not possible to reach the http/docs folders with net2ftp (cant log in with user/pass) it says
    The error occured in file /var/www/new/ehcp/net2ftp/includes/filesystem.inc.php on line 56.
    • function ftp_openconnection (/var/www/new/ehcp/net2ftp/modules/browse/browse.inc.php on line 223)
    • function net2ftp_module_printBody (/var/www/new/ehcp/net2ftp/main.inc.php on line 313)
    • function net2ftp (/var/www/new/ehcp/net2ftp/index.php on line 59) ◦ argument 0: printBody

    Can you help?

  11. Booblla says:

    There is a rather large error in command in the second step.

    The file name is incorrect!

  12. dmacleo says:

    the command should be tar -zxvf ehcp_latest.tgz not tar -zxvf ehcp.tgz

  13. Manish says:

    Hi Ravi,

    I have just installed LAMP on my cloud server from RackSpace using Cent Os 6.4. I am confused which CPanel I should use between EHCP or Webmin?

    PS: I was using big rock share hosting previous to this. Can you please help me choosing which is best for managing multiple domains??


  14. Howard McGinnis says:

    Bad, bad, bad.

    I follow the instructions on the web ONLY to find out when the install.sh runs that install.sh SHOULD NOT be run on CentOS systems.

    Why didn’t you say this BEFORE saying to invoke install.sh? Now I don’t have a clean CENTOS and possibly cant install this manually?

    Yes, no warranty. But a WARNING would have been nice. I’m struggling with CentOS as it is, this just added more frustration on me.

  15. jamal says:

    1. how does EHCP compare with WebMin
    2. How do i uninstall EHCP


  16. Vadym says:

    on the page http://*.*.46.4/ehcp/ write error:
    “Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/new/ehcp/config/adodb/drivers/adodb-mysql.inc.php on line 370″

    Why is this error, how to fix it? Please help me

    • Ravi Saive says:

      Add the following line in /etc/php.ini to get rid of such errors. Make sure you restart Apache after making changes to php.ini file.

      error_reporting = E_ALL ^ E_DEPRECATED
  17. Usman says:

    how i solved the error apt-get during installation of ehcp

    please help me

    • Ravi Saive says:

      What apt-get error you getting on the screen? can post the error output here? it will help us to identify the problem.

  18. Anwar says:

    Hello , I have installed EHCP using alesbd.com domain according to this guideline. I have configured dns as well. I can host another domain . But I could not upload my website under the domain alesbd.com . It shows EHCP default page always. Now what should i do ?


Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.