CentOS Web Panel

Install CentOS Web Panel (CWP)

CentOS Web Panel (CWP) is a free hosting control panel for CentOS servers.

CentOS Web Panel

To install CentOS Web Panel, run

CWP use same Ports as popular Cpanel control panel.

Admin Panel

CWP Admin Panel available on following URL.

You can login with system user “root” and its password.

User Panel


On CWP server, you can find MySQL login details in following config files.

Document Root

Web site files are stored in folder /home/USER/public_html

Stop/Start Services

Service files are stored in /usr/lib/systemd/system/

Web Server

CWP support multiple web servers. For Apache, it is installed in folder

Apache config file is /usr/local/apache/conf.d/vhosts.conf

CPW have its own apache package with name “cwp-httpd”, don’t use default httpd package provided by CentOS.

CWP server log can be found at

See Hosting Control Panel

Fix yum duplicate packages

On a CentOS server, when running

It failed with following error


This is because previous “yum update” failed for some reason after package install. So no cleanup was done.

To fix, you need to use package-cleanup command.

To list all duplicate packages, run

To remove all duplicate packages, run

Now do a yum update

This will update your system and install any missing packages.

To verify if there any problem, run

CentOS 7 Apache use PHP-FPM

Install PHP-FPM with command

Edit www.conf


Replace with


Replace with

Edit php.conf


Restart Apache/php-fpm

Method 2

Here is php-fpm config using proxy_fcgi


CSF Firewall UI

Enable UI in CSF Firewall on CentOS

CSF Firewall UI

CSF Firewall come with standalone UI. This is disabled by default. On CentOS, install following requirments

Edit CSF configuration file


Replace with

Change following settins as needed.

By Default, only whitelisted IP can access the UI, to white list your IP, run

If you want to allow CSF UI from all IP address, then set UI_ALLOW to 0 in csf.conf

CSF use a self signed SSL, if you have an SSL cert, you can use it. SSL certificate is avaiable in folder

To use LetsEncrypt Free SSL certificate for CSF UI, i set symlink to ssl cert.

Now restart CSF and LDF

You will see CSF UI running on port 6666.

RPM Package Manager

On RHEL, CentOS, Fedora etc use RPM for package menagement. To find the package that provides a binary file, run

List all files in an rpm package

To see change log for a rpm package, run


To find which RPM package owns a file

See yum

Open MySQL Port 3306 in CentOS 7

To allow MySQL to connect from remote server on CentOS 7 server, you need to enable port 3306 in firewall.

To do this, edit file


Add above

Restart server.

Install python 3.6 on CentOS 7

CentOS 7 come with Python 2.7. To install python 3.6, first install EPEL repo.

Install IUS repo.


For CentOS 7, run

Now you can install python 3.6 with yum

Python 3.6 binary will be available as “python3.6” and “pip3.6”

Install Python 2.7 on CentOS 6

CentOS 6 comes with python 2.6, to install python 2.7, first install gcc and dependencies yum

Download latest Python 2.7 from


For Python 2.7.2 (latest at the time of writing this post).

We use “make altinstall” so python will be installed as python2.7. If you do “make install”, it replace system python binary and break CentOS.

Install pip