Contents

How to install CPanel on Ubuntu 16.04

How to install Cpanel on Ubuntu 16.04
How to install Cpanel on Ubuntu 16.04
  How to install Cpanel on Ubuntu 16.04 is not a simple task to do. Hence we will elaborate the whole process step by step in the following tutorial. But  I have talked about the Access  Cpanel and Ubuntu  earlier, the details of which you can read in these articles:
  1. VPS Hosting
  2. Install Tomcat 9 on Ubuntu-A complete tutorial

Easy Hosting Control Panel

Easy Hosting Control Panel (EHCP) is a free and open source control panel which was made in PHP, anybody can use this to host websites on their VPS (Virtual Private Server). EHCP gives you a simplistic and easy to use an interface if you ever wish to create and manage users, websites, MySQL, databases, DNS management, ftp and email accounts, and more.

How to install Cpanel on Ubuntu 16.04

In this tutorial, we will teach you how to install the Easy Hosting Control Panel on Ubuntu 16.04.

Step 1: Logging in via SSH and update the system

Before starting, it is important that you login to your server via SSH as user root.
ssh [email protected]_ADDRESS -p PORT_NUMBER
Switch ‘IP_ADDRESS’ and ‘PORT_NUMBER’ with your own server IP address and SSH port number. You will need to make sure that your Ubuntu 16.04 server is up-to-date by executing the commands below.
apt-get update

apt-get upgrade

Step 2: Downloading EHCP

You can download the latest EHCP version from the official website by using the command below.
wget -O ehcp.tgz www.ehcp.net/ehcp_yeni.tgz
Next, you will need to extract the archive by running this command.
tar -zxvf ehcp.tgz

Step 3: Installing EHCP

You may now enter the ‘ehcp’ directory with the below.
cd ehcp
Now execute the installation script so that the EHCP installation starts.
./install.sh
  The installation script should install every package required, including the services. We will guide through every step needed and ensure that the installation was completed correctly. While the installation process is going on, make sure that you read and follow every instruction carefully. Begin by pressing ‘Enter’ to proceed.
STAGE 1

=====================================================================




--------------------EHCP PRE-INSTALLER 0.38.5.b -------------------------

-----Easy Hosting Control Panel for Ubuntu, Debian and alikes--------

-------------------------www.ehcp.net--------------------------------

---------------------------------------------------------------------




Now, ehcp pre-installer begins, a series of operations will be performed and main installer will be invoked.

If any problem occurs, refer to www.ehcp.net forum section, or contact us, mail:

[email protected]

Please keep in mind, Ehcp 0.38.3 and later is for Ubuntu 16.04 and later. Ehcp is specifically tested for Ubuntu, but should also work on many Debian based distros.




For automated installs, use ./install.sh unattended (passwords are default in this case)

Please be patient, press enter to continue
  Like it says, you need to press ‘Enter’ again to continue. Note that ‘ehcp’ can only be installed automatically on Debian based Linux OS’es or Linux’es with apt-get enabled (Ubuntu, Kubuntu, debian and so on). Do not try to install ‘ehcp’ with this installer on redhat, centos and non-debian Linux’s.

Debian Systems

To use ehcp on no-Debian systems, you need to manually install.. This installer is for installing onto a clean, newly installed Ubuntu/Debian. If you install it on existing system, some existing packages will be removed after prompting if they should conflict with packages that are used in ehcp; so, be careful to answer ‘yes/no’ when using this in a non-new system Note that this is just a utility, use at your own risk. Ehcp also sends some usage data to developer for statistical/improvement purposes.  

Outline of the install process:

1- Update apt-get repo info (apt-get update) 2- Install Php (That will run Main installer) 3- Run Main installer (Run install_1.php and install_2.php to install other server related software, such as mysql/mariadb, apache, nginx, etc.)  

Press ‘Enter’ to continue.

The main installer is going to show you what EHCP version you are currently installing. Simply press ‘Enter’ once again to continue.
-----------------------EHCP MAIN INSTALLER---------------------------

------Easy Hosting Control Panel for Ubuntu, Debian and alikes ------

--------------------------www.ehcp.net-------------------------------




---------------------------------------------------------------------

ehcp version 0.38.5.b

ehcp installer version 0.38.5.b

Unattended:




Starting Ehcp install, please read prompts/questions carefully !

Some install/usage info and your name/email is sent to ehcp developers for statistical purposes and for improvements

Ehcp now also has professional version and support, as described at http://ehcp.net/?q=node/1518




press enter to continue:

--------------
You should be prompted to either enter a new or leave the password for the MySQL “root” user unchanged. You are going to be prompted to put in your name, email address and set up the MySQL and admin user password for the “ehcp”account. Make sure to replace STRONGPASSWORD with a really strong password of your own.
EHCP INSTALL - INPUTS/SETTINGS SECTION:
 
THIS SECTION IS VERY IMPORTANT FOR YOUR EHCP SECURITY AND PASSWORD SETTINGS.

PLEASE ANSWER ALL QUESTIONS CAREFULLY



Please enter your name:dreamvps

Please enter your/admin email (used to send your panel info, ehcp news)- Enter an already working email:[email protected]

mysql root pass being checked ...



Your mysql root pass is identified as empty. Enter NEW PASSWORD for mysql user of `ehcp` (default 1234): 

Please pay attention that, you cannot use sign # in your password: STRONGPASSWORD

Enter ehcp panel admin NEW PASSWORD (default 1234): STRONGPASSWORD

Enter ehcp panel admin NEW PASSWORD AGAIN: STRONGPASSWORD



============== MYSQL PASSWORD SETTINGS COMPLETE ... see troubleshoot if your ehcp does not work ==============
Now, you will be prompted for your Hostname, IP Address and preferred language. You could simply leave them all on default settings by pressing Enter on every question: Enter your hostname, IP address, preferred language etc. If you want to leave defaults, just press Enter. In my case, I go with defaults.   Your hostname seems to be a host, if it is different, enter it now, leave blank if correct   Hostname is set as host Your IP seems to be 111.222.333.444, if it is different or you want to use a different (external) IP, enter it now, leave blank if correct  

LANGUAGE SELECTION:

  ehcp currently supports English,Turkish,German,Spanish,French (some of these partial) except installation enter language file you want to use (en/tr/German/Spanish/nl/fr/lv/pt_br [default en]):

Hosting Environment

  • Do you want to install some additional programs which are not essential but useful for a hosting environment, such as ffmpeg,… etc.. ? Answer no if you have small ram or you need a light/fast system (y/[n]
  • At a point in the installation, you will be prompted to configure the ‘roundcube’ database. Choose ‘Yes’ and then put in a password for the ‘roundcube’ database user.
  • The database for ‘phpmyadmin’ has to be configured. Once asked about it, choose ‘Yes’ and then enter a password for the ‘phpmyadmin’ database user.

PhPMyAdmin

Once you have entered the password, you should be prompted to select which web server you want configured with phpMyAdmin. As we have an Apache web server on our VPS, we selected the ‘apache2’ option; note that you could press SPACE on your keyboard to select what server you want, then press on ‘OK’.

FQDN

Now, you have to choose the mail server configuration type based on your needs. In this case, we go with the default one ‘Internet Site’ option. |You will also have to enter the mail name of the server. This name has to be a fully qualified domain name (FQDN).
  • Finally, you will be prompted to create directories for web-based administration. Choose ‘Yes’ to proceed.
  • In this last step, the installation is going to be finished and the output below will be shown to you.
ehcp run/restart complete..
  If your server is behind a router/modem in your network, you will need to Open/redirect necessary ports on your modem/router. The ports below need to be opened/redirected.
20,21,22,25,53,80,110,143 (tcp+udp)




ehcp install finished up to now. we are continuing on simplifying the install process.

sorry for any inconvenience. you can contact email/msn: [email protected]

you may join us in developing this control panel.




You may visit http://www.ehcp.net

You may support by donating cash, buying a pro license, doing php coding, html design, graphic design...

You may support by donating free dedicated or virtual servers for this project...




CURRENTLY WE NEED A DEDICATED SERVER WITH 8 CORE, 8GRAM, 500G hdd at least (or, you may consider to buy a pro license or donate..)




ehcp : Finished all operations.. go to your panel at http://yourip/ now...
 

Step 4: Access the EHCP dashboard

Once the installation is done, you may access the control panel from your browser by using ‘http://your-ip-address

Final Thoughts

  • You can click the link which says ‘Click here for the control panel on your server!’ This wil take you to the EHCP login screen.
  • You may log in with ‘admin’ as username and the password you chose during the installation. If you did not set any password, you will have to use the default one ‘1234’.
  • This is all done now.  EasyHosting Control Panel has been successfully installed on your Ubuntu 16.04 server.
One more thing.. Share this tutorial with your hosting managers and networking experts friends, as it will help them and make my countless hours of work count. Thanks  
Updated on 02 Jun 2018
0 Comments
Add a comment
Login for Comment