Installing CentOS Web Panel on Centos 7

In this tutorial we are going to see, how to install and configure CentOS Web Panel on Centos 7

About CentOS Web Panel

CentOS Web panel(CWP), is a free, Open Source control panel that can be widely used for deploying a Web hosting environment easily. Unlike other Control panels, CWP is automatically deploy the LAMP stack withVarnish Cache server.  It was specially designed for RPM based distributions like CentOS, RHEL, etc.

Features

CWP has lot of features and free services. As mentioned before, CWP automatically installs full LAMP stack (apache, php, phpmyadmin, webmail, mailserver etc.) on your server.

List of softwares to be installed and configured during CWP installation:

  • Apache Web Server

  • PHP 5.4

  • MySQL + phpMyAdmin

  • Postfix + Dovecot + roundcube webmail

  • CSF Firewall

  • File System Lock (no more website hacking, all your files are locked from changes)

  • Backups; AutoFixer for server configuration

3rd Party Applications

  • CloudLinux + CageFS + PHP Selector

  • Softaculous – Script Installer (Free and Premium)

Web Server

  • Varnish Cache server

  • Compiles Apache from source

  • Apache reCompiler + Additional modules

  • Apache server status, configuration

  • Edit apache vhosts, vhosts templates, include configuration

  • Rebuild all apache Virtual hosts

  • suPHP & suExec

  • Mod Security + OWASP rules

  • Tomcat 8 server management

  • DoS protection

  • Perl cgi script support

User Management

  • Add, List, Edit adn Remove Users

  • User Monitoring

  • Shell access management

  • User Limit Managment

  • Limit Processes

  • Limit Open Files

  • User FTP & File Manager

  • CloudLinux + CageFS

  • Dedicated IP per account

DNS

  • FreeDNS

  • Add, Edit, List and Remove DNS zones

  • Edit nameserver IPs

  • DNS zone template editor

  • New Easy DNS Zone Manager (with ajax)

  • New DNS Zone list with Additional resolving information using google (also checking rDNS, nameservers….)

Email

  • Postfix & dovecot

  • MailBoxes, Alias

  • Roundcube webmail

  • Postfix Mail queue

  • rDNS Checker Module

  • AntiSPAM

  • Re-Build Postfix/Dovecot Mail server with AntiVirus, AntiSpam Protection

  • Email Auto Responder

  • SPF & DKIM Integration

System:

  • CPU core and clock info

  • Memory usage info

  • Detailed Disk status

  • Software Info like kernel version, uptime etc.

  • Services Status

  • ChkConfig Manager

  • Network port usage

  • Network configuration

  • SSHD configuration

  • Auto-Fixer (checks important configuration and tries to auto-fix issues)

Monitoring:

  • Monitor services eg. top, apache stats, mysql etc.

  • Use Java SSH Terminal/Console within panel

  • Services Configuration (eg. Apache, PHP, MySQL etc)

  • Run shell commands in screen/background

Security:

  • CSF Firewall

  • SSL generator

  • SSL Certificate Manager

  • CloudLinux + CageFS

SQL:

  • MySQL Database Management

  • Add local or remote access user

  • Live Monitor MySQL process list

  • Create, Remove database

  • Add additional users per database

  • MySQL server configuration

  • PhpMyAdmin

  • PostgreSQL, phpPgAdmin Support

Step 1 – Configure Hostname and update the system

If you did not set the hostname of your system while installing CentOS 7 then use hostnamectl command to set hostname.

# hostnamectl set-hostname "server.webhostingchennai.co.in"
# exec bash

Now, update the  /etc/hosts file.

# echo "12.14.16.18 server.webhostingchennai.co.in server" >> /etc/hosts

Update your CentOS 7 server and then reboot.

# yum update -y && reboot

Step 2 – Download and Install latest version of CentOS Web Panel

We can now, download latest version of CWP from their official site (http://centos-webpanel.com), using wget command.

# cd /usr/local/src/

# wget http://centos-webpanel.com/cwp-el7-latest

Or

# wget http://dl1.centos-webpanel.com/files/cwp-el7-latest

We can start CWP installation by executing

# sh cwp-el7-latest

The execution time is purely depends on your internet connection, because it will download and install the required packages of CWP.

Once the Script has been executed successfully , we will get the output something like below :

#############################
# CWP Installed #
#############################

go to CentOS WebPanel Admin GUI at http://SERVER_IP:2030/

http://12.14.16.18:2030
SSL: https://12.14.16.18:2031
---------------------
Username: root
Password: ssh server root password
MySQL root Password: *************

#########################################################
CentOS Web Panel MailServer Installer
#########################################################
SSL Cert name (hostname): server.webhostingchennai.co.in
SSL Cert file location /etc/pki/tls/ private|certs
#########################################################

visit for help: www.centos-webpanel.com
Write down login details and press ENTER for server reboot!
Press ENTER for server reboot!

Note down your mysql root user password and hit enter to reboot your server.

Step 3 – Accessing CWP Admin Control Panel

Once the server is online after reboot, try accessing the CWP admin portal from the your web browser.

http://Server_IP:2030

Or

https://Server_IP:2031

Use the User Name as root and password would be your server’s root password.

This page confirms that we have successfully installed CWP, Now to make your server ready for domain hosting,  you need to perform following tasks.

Configuring the Nameservers

Go to DNS Function –> Click on Edit Nameservers IPs

Enter the domain name on which you need to create the name server, and enter your server’s ip addressEnter the domain name on which you need to create the name server, and enter your server’s ip addressRefer the below format,

NS1 SubDomain: ns1.your_domain.com   NS1 IP: 12.14.16.18

NS2 SubDomain: ns2.your_domain.com   NS2 IP: 12.14.16.18

Once you completed, Save the changed and restart the bind service.

Configuring shared IP and Root email

The most important step for hosting web sites (Shared hosting). So to configure shared IP, Go to CWP settings –> Click on Edit Settings  and then specify the shared IP.

Now, save the changes made.

Adding Web Hosting Package

To add web hosting package ,  Go to Packages –> Select ‘Add a Package’ option and specify the required values and then click on Create option.

 

Adding a domain in your CWP

To add domain in CWP, one account needs to be created first. To create an account, goto ‘User Accounts’ –> Select ‘New Account’, Specify the domain on which user will be created, user name, email and package etc as shown in the below screenshot.

Click on create.

The below screenshot, confirms you have added the domain successfully.

Now let’s try to add a domain, Go to ‘Domains’ –> Click on ‘Add Domain’ , specify the domain name that you want to add, in my case I am adding a domain name “sampleaddondomain.com”.

Click on create to add domain.

Below windows confirms that domain has been added successfully. Domain’s documents root, Server name, its alias and its other parameters has been updated

I hope this article helps you to understand CWP installation on CentOS 7 and its basic configurations.

 

You may also like...