Install CentOS Web Panel & Configure With PHP Selector
- arjun5792
- Aug 25, 2022
- 2 min read

An open-source server with a feature-rich control panel for quick server management is called the CentOs Web Panel, or CWP. User management is made simpler by CentOS's abundance of automation features and lengthy release cycles. Importantly, the CentOs streamline and simplifies server management for companies with high levels of security.
We receive questions about setting up and configuring the CWP web panel as a leading server management company. In this article, we'll go over how to set up PHP Selector and install the CentOS web panel (CWP).
Let's talk about some of the best aspects of the CentOS web panel before getting into the specifics of how our server engineers perform the installation.
Centos Web Panel Features
Greater stability than other free open source Linux distros
A high degree of community support
CentOS is dependable and quick.
Live monitoring and cPanel migration
Simple to use interface
The Web server, PHP, User management, Security, Email, MySQL, System, and DNS-focused features of a CentOS server can be configured using CWP. However, if you're considering how to install the CentOS web panel, your server must meet certain requirements, such as
Centos Server in a newer version.
The minimum RAM requirements for 32bit Server – 512 MB and 64bit Server – 1024 MB
10 GB of free drive space
Static IP address
Installing CentOS Web Panel and Configuring With PHP Selector
The CentOS web panel can be manually installed by yourself and is easy to do. To install the CentOS web panel, adhere to these instructions:
>> cd /usr/local/src
>> wget http://dl1.centos-webpanel.com/files/cwp-latest.sh
>> sh cwp-latest.sh
The PHP Selector can then be built using a patched version of suPHP. SuPHP should be downloaded or unpacked for this.
>> cd /usr/local/src/
>> wget http://www.suphp.org/download/suphp-0.7.1.tar.gz
>> cd suphp-0.7.1
Following the steps to apply the Patches:
>> wget http://repo.cloudlinux.com/cloudlinux/sources/da/cl-apache-patches.tar.gz
>> tar xfz cl-apache-patches.tar.gz
Use the following code piece to apply the patch:
>> patch -p1 < suphp-0.7.1-cagefs.patch
If Apache is version 2.4, we must change the configure file to adopt suPHP sources for it. The following code can be used for that.
>> vi configure
Locate the code section shown below.
major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
if test “$major_version” = “2.0” -o “$major_version” = “2.2”; then
APACHE_VERSION_2=true
APACHE_VERSION_1_3=false
else
APACHE_VERSION_2=false
APACHE_VERSION_1_3=true
and insert the following code into the "if test" line:
if test “$major_version” = “2.0” -o “$major_version” = “2.2” -o “$major_version” = “2.4”; then
Once the changes have been made, construct suPHP using the code provided below;
>> ./configure –with-apr=/usr/local/apr/ –with-apxs=/usr/local/apache/bin/apxs -with-setid-mode=paranoid –with-apache-user=nobody –with-gnu-ld –disable-checkpath –sysconfdir=/usr/local/etc –sbindir=/usr/local/sbin
>> make
>> make install
Once the process has been completed successfully, make sure the suPHP binary contains the required code. You have completed the installation process if you are seeing the output results as displayed below.
—- > strings /usr/local/sbin/suphp | grep jail
lve_jail_uid CageFS jail error
Recheck each step starting at the beginning if you aren't getting the output, and fix the problem.
Finally, modify or create the native.conf file in /etc/cl.selector as shown below.
php=/usr/local/bin/php-cgi php-cli=/usr/local/bin/php php.ini=/usr/local/php/php.ini php-
fpm=/usr/local/sbin/php-fpm
Comments