17 Aug

How To Install cPanel on a Virtual Server Running Centos 6, Centos 7

How To Install cPanel on a Virtual Server Running Centos 6, Centos 7
About cPanel

cPanel is a convenient application that allows users to administer servers through a GUI interface instead of the traditional command line. Although the installation for cPanel is relatively simple, the script does take several hours to run.

Notes

Once cPanel is installed, it cannot be removed from the server without a complete server restore. cPanel does not offer an uninstaller
Additionally, cPanel is subject to a licensing fee which may come out to be around $165 a year. You can find out more about cPanel pricing here https://www.buycpanel.com/

Cpanel VPS $14.90 /mo
Cpanel Dedicated $34.95 /mo

Notes

Recently on September,2015  cPanel and WHM 11.50 has been released, After such a long time  in this version of cPanel & WHM having  support for  CentOS 7 / RHEL 7  Version  on fresh installations. WHM / cPanel webhosting is the best software to manage website hosting server , email , domain and security management, which can be install  in virtual private server (VPS )  as well as on cloud hosting server  and dedicated server . This control panel is  using  most of users, client and companies and it is premier web hosting automated software used by world wide.

Features of cPanel
cPanel control panel is very versatile control panel for managing your hosting servers, It has lots of features which make Web hosting easier for you. Some of them are listed below:

Powerful GUI controls on your server with WHM.
Can perform tedious tasks like Backups, Migrations and restorations in a very easy and smooth manner.
Excellent DNS and mail server management for main server and as well as client account.
Can easily switch/enable/disable services for server.
Can configure SSL/TLS for all server services and client domains.
Easy integration with Phpmyadmin to provide a web based interface to manage your MySQL databases.
Feel free to Rebrand it.
Can be easily integrated with WHMCS to automate billing management.
Here In this article, We’ll be covering cPanel & WHM installation on RHEL/CentOS 6.5 and share some more useful information which will help you to manage cPanel & WHM.

Installation Prerequisites
A fresh and running VPS or dedicated CentOS 6.5 server.
A minimum of 384MB RAM.
A Minimum 20GB of free disk space required for cPanel installation.
A cPanel license.

Installation Recommended settings

Disable OS Firewall before installation .
Recommended Hardware :
Minimum & Recommended Processor should be 226MHZ
Minimum RAM should be 1 GB.
Minimum Disk Space should be 20 GB .

Version check Command

root@centoshost [~]# cat /etc/redhat-release
CentOS release 6.4 (Final)
Disk Space Check
root@centoshost[~]# df -h

Memory Check
root@centoshost [~]# free -m

Deactivate firewall on CentOS 7 , CloudLinux 7 and RHEL 7
iptables-save > ~/iptables.rules    systemctl stop firewalld.service    systemctl disable firewalld.service

Installation Steps
root@centoshost [~]# yum update
root@centoshost [~]# cd /home
root@centoshost [~]# wget -N http://httpupdate.cpanel.net/latest;
root@centoshost [~]# sh latest

After that you need to complete the installation wizard from its web based interface and you can access WHM with the following URL.
https://your-server-ip:2087 or http://your-server-ip:2086
https://your-host-name:2087 or http://your-host-name:2086


cpanel-whm-installation1

CPanel Backend Files
Cpanel directory : /usr/local/cpanel
Third Party tools : /usr/local/cpanel/3rdparty/
Cpanel addons directory : /usr/local/cpanel/addons/
Base files like Phpmyadmin, skins : /usr/local/cpanel/base/
cPanel binaries : /usr/local/cpanel/bin/
CGI files : /usr/local/cpanel/cgi-sys/
Cpanel access & error log files : /usr/local/cpanel/logs/
Whm related files : /usr/local/cpanel/whostmgr/

CPanel  Important conf files
Apache configuration file: /etc/httpd/conf/httpd.conf
Exim mail server conf file:/etc/exim.conf
Named conf file : /etc/named.conf
ProFTP and Pureftpd conf file :/etc/proftpd.conf and /etc/pure-ftpd.conf
Cpanel user file: /var/cpanel/users/username
Cpanel configuration file (Tweak settings) : /var/cpanel/cpanel.config
Networking configuration file: /etc/sysconfig/network
Addons, parked and subdomain information: /etc/userdomains
Cpanel update config file: /etc/cpupdate.conf
Clamav conf file: /etc/clamav.conf
Mysql configuration file: /etc/my.cnf
PHP ini conf file : /usr/local/lib/php.ini

Share this

Leave a reply