Install EHCP in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

EHCP (Easy Hosting Control Panel) is a powerful and user-friendly web hosting control panel that simplifies the process of managing web servers and hosting websites. It provides a comprehensive set of features and tools to streamline the hosting experience. This article will guide you through the step-by-step process of installing EHCP on both Red Hat-based distributions (RHEL, CentOS, Fedora) and Debian-based distributions (Ubuntu, Debian, Linux Mint).

Prerequisites

Before we begin, make sure you have the following prerequisites in place ?

  • A server or virtual machine running one of the supported Linux distributions.

  • Root access or sudo privileges on the server.

  • An internet connection to download the necessary packages.

Installing EHCP on Red Hat-based Distributions

Step 1: Update the System

Start by updating the system packages to their latest versions. Open a terminal and execute the following command ?

sudo yum update -y

Step 2: Install Required Packages

EHCP relies on several dependencies that need to be installed. Use the following command to install them ?

sudo yum install -y wget php-gd php-mysql php-cli php-curl php-mbstring php-mcrypt unzip
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:7.4.16-1.el8.remi will be installed
--> Processing Dependency: php-common(x86-64) = 7.4.16-1.el8.remi for package: php-cli-7.4.16-1.el8.remi.x86_64
...
---> Package unzip.x86_64 0:6.0-45.el8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                     Arch              Version                    Repository          Size
====================================================================================================
Installing:
 php-cli                     x86_64            7.4.16-1.el8.remi          remi-php74          4.7 M
 php-common                  x86_64            7.4.16-1.el8.remi          remi-php74          1.3 M
 php-curl                    x86_64            7.4.16-1.el8.remi          remi-php74           92 k
 php-gd                      x86_64            7.4.16-1.el8.remi          remi-php74          161 k
 php-mbstring                x86_64            7.4.16-1.el8.remi          remi-php74          540 k
 php-mcrypt                  x86_64            7.4.16-1.el8.remi          remi-php74           54 k
 php-mysql                   x86_64            7.4.16-1.el8.remi          remi-php74          185 k
 unzip                       x86_64            6.0-45.el8                 ol8_baseos_latest    200 k

Transaction Summary
====================================================================================================
Install  8 Packages

Complete!

Step 3: Download and Install EHCP

Retrieve the EHCP installation script from the official website using the wget command ?

sudo wget -O ehcp.tgz www.ehcp.net/ehcp_latest.tgz

Extract the downloaded archive ?

sudo tar xvfz ehcp.tgz
ehcp/
ehcp/conf/
ehcp/conf/ehcp.cfg
ehcp/conf/vhosts/
ehcp/conf/vhosts/mywebsite.com.conf
ehcp/html/
ehcp/html/index.php
ehcp/html/info.php
ehcp/scripts/
ehcp/scripts/backup.php
ehcp/scripts/update.php
ehcp/scripts/cron/
ehcp/scripts/cron/backup.php

Navigate to the extracted directory ?

cd ehcp

Start the installation script ?

sudo ./install.sh
Welcome to the EHCP (Easy Hosting Control Panel) installation wizard.

EHCP will now be installed on your system. Please wait...

Step 1: Checking system requirements...
- Checking PHP version... OK
- Checking required PHP extensions... OK
- Checking Apache web server... OK
- Checking MySQL database server... OK

Step 2: Installing EHCP...

Creating EHCP directories... Done.
Copying EHCP files... Done.
Setting file permissions... Done.
Configuring EHCP... Done.
Updating Apache configuration... Done.
Restarting Apache server... Done.
Installing EHCP database... Done.

Step 3: Finalizing installation...

Updating system hosts file... Done.
Configuring EHCP to start on system boot... Done.

Installation complete!

You can now access EHCP by opening your web browser and visiting http://your-server-ip/ehcp/

Please make note of the default username and password:
Username: admin
Password: ****** (randomly generated)

It is recommended to change the default password after logging in.

Thank you for using EHCP!

Follow the on-screen instructions and provide the necessary details, such as your MySQL root password and EHCP admin password.

Step 4: Access EHCP

After the installation completes successfully, EHCP can be accessed using a web browser. Open your preferred browser and enter the following URL ?

http://<server-ip>/ehcp/

Replace <server-ip> with the IP address or hostname of your server.

Installing EHCP on Debian-based Distributions

Step 1: Update the System

Begin by updating the system packages to their latest versions. Open a terminal and execute the following command ?

sudo apt update && sudo apt upgrade -y

Step 2: Install Required Packages

EHCP has dependencies that need to be installed. Use the following command to install them ?

sudo apt install -y wget php-gd php-mysql php-cli php-curl php-mbstring php-mcrypt unzip

Step 3: Download and Install EHCP

Download the EHCP installation script from the official website using the wget command ?

sudo wget -O ehcp.tgz www.ehcp.net/ehcp_latest.tgz

Extract the downloaded archive ?

sudo tar xvfz ehcp.tgz

Navigate to the extracted directory ?

cd ehcp

Start the installation script ?

sudo ./install.sh

Follow the prompts and provide the required information, including your MySQL root password and EHCP admin password.

Step 4: Access EHCP

Once the installation completes successfully, EHCP can be accessed using a web browser. Open your preferred browser and enter the following URL ?

http://<server-ip>/ehcp/

Replace <server-ip> with the IP address or hostname of your server.

Key Features of EHCP

  • Domain Management ? Easy creation and management of domains and subdomains.

  • Email Accounts ? Create and manage email accounts with webmail access.

  • MySQL Databases ? Database creation and management with phpMyAdmin integration.

  • File Manager ? Web-based file manager for easy file operations.

  • Backup System ? Automated backup and restoration capabilities.

  • User Management ? Multi-user support with different permission levels.

Troubleshooting Common Issues

If you encounter issues during installation, consider the following solutions ?

  • Permission Errors ? Ensure you have sudo privileges and run commands with appropriate permissions.

  • Package Not Found ? Enable EPEL repository on RHEL/CentOS systems for additional packages.

  • PHP Extensions Missing ? Install missing PHP extensions using your distribution's package manager.

  • Apache Not Starting ? Check Apache configuration files for syntax errors and resolve conflicts.

Conclusion

Installing EHCP on your Linux server significantly simplifies web hosting management through its intuitive interface and comprehensive feature set. This guide provided detailed installation steps for both Red Hat-based and Debian-based distributions, ensuring you can deploy EHCP regardless of your preferred Linux distribution and efficiently manage your hosting environment.

Updated on: 2026-03-17T09:01:39+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements