EHCP Installation Guide On Ubuntu 14.04 VPS
| |A detailed guide (with pictures) for newbie on how to install and configure Easy Hosting Control Panel (EHCP) on a server / vps running Ubuntu 14.04. I believe this can be one of your alternatives in looking for free web based control panel to make your server hosts your websites or blog.
What is EHCP?
EHCP is an open-source and powerful hosting control panel which you can download, install and use it for free on your server. Just like many other control panels (Vesta CP, Kloxo, etc), EHCP allows its users to install full stack of web server, ftp server, dns server, and mail server. It means with EHCP you don’t need to install necessary software manually. Just install EHCP and you’ll have a ready to use web hosting server. Unlike VestaCP that is currently running Nginx as frontend proxy with Apache as backend, EHCP can and is also the first free hosting CP supporting native Nginx with PHP-fpm. How cool is that?
Some of its key features:
- Full php, full opensource, easily modifiable, customazible, ehcp templates;
- Unlimited “resellers, panel users, domains, ftp users, emails, mysql databases”;
- Domains, subdomains, ftp, mysql, dns (automatic), email etc. management;
- Password protected domains;
- Email forwarding, autoreply, catch-all emails;
- Web-stats (webalizer);
- Web-ftp (net2ftp);
- Easy Install Scripts/Programs (programs such as wordpress, durpal easily downloaded and copied by means of server; no need to deal with ftp etc. A total of 51 programs – just like Softaculous);
- Add/setup domain & install wordpress in single ste ;
- Add domain, easy add domain, add domain to existing ftp, (use sub-ftp accounts);
- Add ftp in main ftp, add custom ftp space (custom location);
- Disk quota control;
- read more features here.
Prerequisites
What you need before installing:
- A SSH client like Putty and basic knowledge about how to use it.
- Basic knowledge about common Unix command to SSH to your server.
- A server or VPS with at least 512MB of RAM (1GB recommended). If you not already have one then you can read my list of recommended VPS providers or these top low end cloud server providers. Quick recommendation: Atlantic.net, Digital Ocean and RamNode.
- Make sure your server is running Ubuntu 14.04. In this article I use a 512Mb cloud server from Atlantic.net running Ubuntu 14.04 LTS Server 64-bit.
- About 1 hour and 15 minutes of your time
- a cup of coffee or tea.
How to install
Step 1 – Login to your server via SSH as root or as a user with root (sudo) privilege:
Step 2 – You can now download full EHCP package (latest version) using wget command:
wget http://www.ehcp.net/ehcp_latest.tgz
That command will always grab the latest version of EHCP. Feel free to always check its latest version here.
Step 3 – Next, extract the package with this command:
tar -zxvf ehcp_latest.tgz
Step 4 – Now lets install EHCP with its simple magic command:
cd ehcp/ ./install.sh
Step 5 – Once you issued above command, it will then shows you EHCP installation page with a bunch of information and instruction about what will happen next. All you need to do is to read it carefully and proceed by hitting Enter button. Please do remember that the install process will occur in approx 1 hour and it will ask you series of questions you have to answer (like defining your passwords for some services). So hold tight and make sure you have uninterrupted Internet connection.
MySQL Setup
Step 6 – Enter the password for the MySQL root user and hit OK then re-enter the password again.
Step 7 – Next, EHCP will ask your name and your email. Enter it correctly:
Step 8 – Enter the password for MySQL root user which you’ve setup earlier. In my case, I use servermom as password for all what it asks.
Step 9 – Now enter password for mysql user of “ehcp” then you’ll also have to enter it again (twice for confirmation)
Step 10 – Enter your hostname, IP address, preferred language, etc. If you want to leave defaults, just hit Enter on your keyboard.
Roundcube Setup
Step 11 – Next, you will be asked to configure database for roundcube with dbconfig-common. Select Yes and then press Enter.
Step 12 – In the next page, you have to select which database will be used by roundcube. It is recommended to simply use mysql.
Step 13 – Enter password of the database’s administrative user.
Step 14 – Enter MySQL application password for roundcube to register with database server. Enter it twice for confirmation.
PhpMyAdmin Setup
Step 15 – Next, you’ll be asked whether to configure phpmyadmin using dbconfig-common setting or not. Simply select Yes.
Step 16 – Enter password of the database’s administrative user to proceed:
Step 17 – Enter MySQL application password for phpmyadmin to register with database server. Enter it twice for confirmation.
Step 18 – Next, the web server that should be automatically configured to run phpMyAdmin. Simply use Apache.
Postfix Setup
Step 19 – EHCP makes use of Postfix as its mail server so in the next page you have to configure its basic setting. Hit OK then choose Internet Site.
Step 20 – Now in the next page you’ll be asked to enter your mail server name. You can simply use your server’s FQDN or something like mail.domain.tld (ex: mail.servermom.org)
Step 21 – Create directories for web based administration? Answer it with Yes.
Step 22 – Next, simply choose OK to install necessary SSL certificates.
Step 23 – Now the installer will ask you to also install Nginx. This time you can select No because you’ve already choose to use Apache earlier.
Done! The EHCP installation has been complete. It will display something like this (below), you can now launch your favorite web browser and open EHCP dashboard.
Hello,
Great stuff. Thank you |:D
Question: Would you recommend EHCP over Vestacp?
I am new and just installed vestacp, however I can’t seem to add a new database (error:Connection to localhost failed) I am trying to install wordpress
Nop. I probably will stick with Vesta for its nicer interface
I was finally able to install vestacp as well as ehcp.
Is it possible to have both on the same droplet? I am using digitalocean
I agree. I am dropping ehcp. It breaks my permalinks in wordpress. I spent two days trying to fix it.
Now on vestacp and it’s so easy, simple and straightforward 😀
Indeed 🙂
Which user do you use in vestacp? own created user or admin? I want to delete admin user. Is this wise or not?
admin. I don’t see a reason to delete admin in Vesta CP and to create new user.
Thanks for the tutorial. I managed to install it. Now I am trying to add websites and install wordpress. I am getting stuck in the process.
I have added domaind and installed wordpress, however it is not working
Thanks for this tutorial. I have learn so much from your blog. I tried installing EHCP on a clean Ubuntu but I do get error once I reach Roundcube Intallation.
(ERROR 2002 (HY000): Can’t connect to local MySQL server through socket │ │ ‘/var/run/mysqld/mysqld.sock’ (2)
Please what can I do about this?
It’s will help you http://www.codero.com/knowledge-base/questions/296/How+to+reset+your+root+MySQL+password
which is better WEP or VestaCP?
that depends on each person’s taste. For me, I prefer to like Vestacp
Hi I have also installed ehcp and added my domain, website and site files in httpdocs folder. How do i access site
If you’ve changed your domain NS, then it should be accessible via your domain
Hi I have also installed ehcp and added my domain, website and site files in httpdocs folder. How do i access site
Hello mam I have installed ehcp coanel in my wordpress site but I have problem to upload and download media files in my site. Error Display in “Missing a temporary folder.” so what’s solution?Please tell me….
Hello mam I have installed ehcp cpanel but I have problem in pdf upload and downloads media files in my wordpress site.what’s solution? Please tell me
what’s the problem, to be more specific
mba saya pasang ehcp di server x3560 m5 lenovo ram 32gb hdd 2terra network 10mbps dengan static ip plus ubuntu server 14.04 lts..sya sudah update ehcp terbaru..dan masalahnya tetap sama
1-unable to login net2ftp
2-cant send mail-relay not permitted
3-tidak bisa nambah database phpmyadmin
dan masih banyak lagi..
yang mau saya tanyakan..apa ehcp benar2 bisa berfungsi sebagai webhosting dengan problem yang seabrek gitu?blum lagi msalah chmod apache2 nginx superuser..
Basically I have the same doubt as you. If I may recommend, I can say you better use VestaCP. However, there is still possibility in the future EHCP team will develop even more sophisticated features.
1-unable to login net2ftp coba dpkg vsftpd –reconfigure..vsftpd konversi dari 14 ke 15 rada ndablek..<- lebih baik turunin versinya
2-cant send mail-relay not permitted <- coba tambah A+Cname and MX record,,kmaren saya juga gitu gan,,relay not permitted,,gataunya mxnya ga ada^^
*pas instalasi ehcp secara otomatis ngescan/rebuild smtp,ftp,imap domain..so kalo mx recordnya ga ada gitu dah kasusnya^^
3-tidak bisa nambah database phpmyadmin<- ini bener2 bug dari phpmyadmin,,sekarang aja saya coba pasang ehcp pake mariadb gagal melulu^^
*im trying another solutions for this control panel^
thanks buat tipsnya pak