This is an old revision of the document!


How to set to use CloudLinux PHP Selector instead of EA4 multi-PHP on cPanel EA4 + CloudLinux + LSWS?

If you use cpanel EA4 on CloudLinux system, when installing LSWS, LiteSpeed auto-installer script will add proper external apps for both EA4 muli-PHP and CloudLinux PHP Selector automatically, while php handlers will be set to use EA4-Multi-PHP by default with version 5.6.

The external apps are as the following:

External app lsphp56:

External app cl_phpselector:

PHP Handlers:

Suffix .php and .php5 will be set to handled by lsphp56 by default. If you want to use CloudLinux PHP Selector, you should change suffix .php and .php5 to be handled by cl_phpselector.

As you have already know, when CloudLinux integrated with cpanel Easy Apache 4, how the php version being selected. Only when cpanel multi PHP version for a domain is the same as cpanel system default php version(which was set from the very beginning) , then CloudLinux PHP selector will be used, see detailed here.

For example, cpanel system PHP version default version is ea-php56, for example1.com, Multi-PHP manager is set to ea-php56. Then .htaccess in example1.com document root will be added the following by cpanel:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
 AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
  • Admin
  • Last modified: 2017/10/20 21:07
  • by Jackson Zhang