LiteSpeed support

Navigation:  PHP Selector > Installation >

LiteSpeed support

Previous pageReturn to chapter overviewNext page

To enable PHP Selector with LiteSpeed Web Server follow PHP Selector installation guide, and then adjust following settings in LiteSpeed:


1.CloudLinux (Admin Console --> Configuration --> Server --> General): CageFS

2.Enable SuExec: Server-> General -> PHP SuEXEC -> Yes

3.LSPHP5 external app runs in SUEXEC non-daemon mode ONLY (Run On Start Up --> Yes or No)

4.In lsphp5 external app (Admin Console --> Configuration --> Server --> External App --> lsphp5)


Change the following:


command => $SERVER_ROOT/fcgi-bin/lsphp5 




command => /usr/local/bin/lsphp


If you use CageFS 6.0-35 or higher with Plesk, change to following:


command => /var/www/cgi-bin/cgi_wrapper/cloudlinux_wrapper


See screen shot below:




* In order to use PHP Selector and custom php.ini, lsphp5 needs to be in SuEXEC non-daemon mode.


** Some PHP configurations require more memory for SuExec to work properly. If you are getting error 500 after switching suEXEC to non-daemon mode, try to increase Memory Soft Limit and Memory Hard Limit for external App to at least 650/800M.


*** If you have LiteSpeed installed not in standard location path, please create a symlink: 'ln -s /path/to/custom/lsws /usr/local/lsws' then run 'cagefsctl --setup-cl-selector'.