How to install CWP (CentOs Web Panel) and configure it for PHP-Selector

CentOS Web Panel and it’s features are described on official website: http://centos-webpanel.com/features

The installation is straight forward:

During the install it builds Apache and PHP from source.

To make PHP-Selector work we need to build patched suphp:
– download/unpack suphp (0.7.1 as example):

– download/unpack our patches:

– apply our patch:

– build suphp:

When done check if suphp binary has necessary code, the output should be following :

lve_jail_uid
CageFS jail error

And change (create) /etc/cl.selector/native.conf to looks this way:

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

Leave a Reply

Your email address will not be published. Required fields are marked *