Operating System Ubuntu

How to Install Easy Hosting Control Panel (EHCP Force) on Ubuntu 26.04 LTS

Install EHCP Force Edition, the maintained fork of Easy Hosting Control Panel, on Ubuntu 26.04 or 24.04 and log in to add your first domain.

Easy Hosting Control Panel (EHCP) turns a plain Ubuntu server into a shared-hosting machine: a web interface for domains, subdomains, FTP accounts, MySQL databases and mailboxes, with the web, mail, DNS and FTP services configured for you. This guide installs the maintained fork, EHCP Force Edition, on Ubuntu 26.04 LTS or 24.04 LTS and takes you as far as logging in and adding the first domain.

Ubuntu 16.04 is out of standard support, and the original EHCP is no longer the version to install: the newest packages on its SourceForge download page date from 2014. EHCP Force Edition is a fork of that code which is developed on GitHub, received commits throughout 2026, and contains release-specific fixes for Ubuntu 24.04 and 26.04 in its installer.

Requirements

  • A clean Ubuntu 26.04 LTS or 24.04 LTS server. The project's README asks for a clean installation of a Debian-based distribution; the installer sets up and reconfigures the web server, database, mail, FTP and DNS services, so do not run it on a machine that already hosts something.
  • A user with sudo rights and a static public IP address.
  • A fully qualified host name for the server, for example panel.example.com, with an A record pointing at it. You need it if the server will handle mail.
  • Time: the installer downloads and configures a large number of packages. Plan for half an hour or more.

Step 1: Update the server

sudo apt update
sudo apt -y upgrade
sudo reboot

Log in again after the reboot and set the host name if you have not done so:

sudo hostnamectl set-hostname panel.example.com

Step 2: Download EHCP Force Edition

The project's README gives a Git clone as the installation method. The installer lives in the ehcp subdirectory of the repository:

sudo apt -y install git
mkdir -p ~/Downloads
cd ~/Downloads
git clone https://github.com/earnolmartin/EHCP-Force-Edition.git ehcp
cd ehcp/ehcp

Step 3: Run the installer

Start the installer from that directory. Run it inside tmux or screen if your SSH connection is unreliable, because an interrupted run leaves the server half configured.

sudo bash install.sh

It detects the distribution and release, then asks a short series of questions:

QuestionWhat to answer
Install in unattended mode?y installs everything without further package prompts and generates random passwords for the MySQL root user, phpMyAdmin, Roundcube, the EHCP database user and the panel's admin account. n lets you type the passwords yourself during the run.
Global e-mail address for the panelA mailbox you read. The panel uses it as its administrative address.
Install extra software?y adds Amavis, SpamAssassin, ClamAV, ModSecurity, ModEvasive and Fail2Ban, and then asks for the mail server's fully qualified domain name and whether to install PolicyD. These need noticeably more memory; answer n on a small server that will not handle mail.
Default web serverPress Enter for Apache, or type nginx.

In unattended mode the generated passwords are printed on screen and saved for later reference:

sudo cat /root/ehcp_info

Copy the contents into your password manager. The file is readable only through sudo, but it holds the database root password in plain text, so delete it once you have stored the values:

sudo rm /root/ehcp_info

Step 4: Open the firewall

If you use UFW, allow SSH first and then the services you intend to offer. A typical hosting server needs web, FTP, mail and DNS:

sudo ufw allow OpenSSH
sudo ufw allow 80,443/tcp
sudo ufw allow 21/tcp
sudo ufw allow 25,587,110,143,993,995/tcp
sudo ufw allow 53
sudo ufw enable

Leave out the lines for services you do not use. Passive-mode FTP needs an additional port range; check the pasv_min_port and pasv_max_port values in /etc/vsftpd.conf and allow that range if clients cannot list directories.

Step 5: Log in to the panel

Open http://203.0.113.10/ in a browser, replacing the address with your server's. The default page links to the control panel. Sign in as admin with the password from /root/ehcp_info, or the one you typed during an interactive installation.

First things to do in the panel:

  • Change the admin password if it was generated or chosen in a hurry.
  • Add your first domain. EHCP creates the virtual host, the DNS zone, an FTP account and the directory under /var/www/vhosts/ in one step.
  • Point the domain at the server: either set its name servers to this machine, or keep your existing DNS provider and create A and MX records there.
  • Request a Let's Encrypt certificate for the domain from the panel once DNS resolves. EHCP Force supports Let's Encrypt, custom and wildcard certificates.

Verify the services

Check from the shell that the main services came up. The first line applies to the default Apache installation; use nginx instead if you chose it:

systemctl status apache2 --no-pager
systemctl status postfix --no-pager
systemctl status vsftpd --no-pager
sudo ss -tlnp

The last command lists every listening port, which is a quick way to see what the installer has exposed before you decide on firewall rules.

Maintenance and troubleshooting

  • Installed files. The panel itself is in /var/www/new/ehcp and customer sites are under /var/www/vhosts. Back up both, together with a dump of all MySQL databases.
  • Do not hand-edit generated configuration. EHCP rewrites virtual host, DNS and mail configuration from its database whenever you change something in the panel, so manual edits to those files are lost. Use the panel's own template and custom-configuration options.
  • System updates. Keep applying sudo apt update && sudo apt upgrade. Before a release upgrade of Ubuntu itself, check the project's forum for the state of support for the new release.
  • Mail from a new server is rejected. Set a reverse DNS (PTR) record for the IP address in your provider's control panel that matches the server's host name, and publish SPF and DKIM records for each domain.
  • Problems during installation. The installer's source references https://ehcpforce.ezpz.cc and its forum as the place for support.

Frequently asked questions

What is the difference between EHCP and EHCP Force Edition?

Force Edition is a fork of the original panel from ehcp.net. According to its README it is maintained on GitHub, follows new Ubuntu releases more quickly, and adds features such as FTP accounts with custom paths, proper nginx support and bundled Fail2Ban protection. The original download archive has not been refreshed since 2014.

Can I install it on Debian?

The README says EHCP works on most Debian-based systems and is tested most thoroughly on supported Ubuntu releases. The installer refuses Debian 7 and older and carries fixes for newer Debian releases, but Ubuntu LTS is the safer choice.

Can I remove EHCP again?

There is no clean uninstall. The installer changes the configuration of many system services, so the reliable way back is to rebuild the server from a fresh image. Take a snapshot in your hosting control panel before installing if you only want to evaluate the panel.

Is EHCP suitable for selling hosting?

It supports resellers and multiple administrators, but it is a small community project without a commercial support channel. For a business, weigh that against larger maintained panels before you put customers on it.

Share story:

Continue reading other guides on How VPS.