Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cl_phpselector_how_to [2015/06/26 16:15]
Jackson Zhang [Summary]
litespeed_wiki:cl_phpselector_how_to [2015/07/28 13:30]
Michael Alegre removed
Line 1: Line 1:
-====== CloudLinux PHP Selector ​Howto ======+====== CloudLinux PHP Selector ======
  
  
Line 11: Line 11:
 Cloudlinux has added their support in PHP Selector to work with lsphp in LiteSpeed Web server. It leverages the same PHP Selector GUI so that user can switch between different lsphp versions in LiteSpeed Web Server without going to LiteSpeed Admin Console to build LSPHP separately. Cloudlinux has added their support in PHP Selector to work with lsphp in LiteSpeed Web server. It leverages the same PHP Selector GUI so that user can switch between different lsphp versions in LiteSpeed Web Server without going to LiteSpeed Admin Console to build LSPHP separately.
  
-In brief, Cloudlinux'​ PHP Selector, LVE Manager and CageFS need to be installed and enabled; LSWS' lsphp5 external app needs to be in NON suEXEC daemon mode (for example, suEXEC worker mode or suEXEC Process Group mode) with lsphp5 binary being set to a symlink that eventually points to the actual PHP binary of user's choice in CageFS.+In brief, Cloudlinux'​ PHP Selector, LVE Manager and CageFS need to be installed and enabled; LSWS' lsphp5 external app needs to be in NON suEXEC daemon mode (for example, suEXEC worker mode or suEXEC Process Group mode. suEXEC daemon mode is incompatible with PHP Selector) with lsphp5 binary being set to a symlink that eventually points to the actual PHP binary of user's choice in CageFS.
  
 You can also check [[http://​docs.cloudlinux.com/​index.html?​php_selector.html|Cloudlinux PHP Selector]] documentation. You can also check [[http://​docs.cloudlinux.com/​index.html?​php_selector.html|Cloudlinux PHP Selector]] documentation.
Line 41: Line 41:
   - Enable CloudLinux CageFS support ​ (Admin Console => Configuration => Server => General => Cloud-Linux):​ CageFS   - Enable CloudLinux CageFS support ​ (Admin Console => Configuration => Server => General => Cloud-Linux):​ CageFS
   - Enable PHP suEXEC ( Admin Console => Configuration => Using Apache Configuration File => PHP suEXEC): Yes   - Enable PHP suEXEC ( Admin Console => Configuration => Using Apache Configuration File => PHP suEXEC): Yes
-  - LSPHP5 external app runs in NON suEXEC daemon mode ONLY (Run On Start Up => Yes or No) +  - LSPHP5 external app runs in NON suEXEC daemon mode ONLY (Run On Start Up => Yes or No). Check [[litespeed_wiki:​php:​which_php_setup_am_i_using#​php_suexec_setups|here]] for suEXEC worker mode or suEXEC process group mode setup.
  
  
Line 114: Line 113:
 ===== Notes ===== ===== Notes =====
  
-1. In order to use PHP Selector and custom php.ini, lsphp5 needs to be in **NON** suEXEC daemon mode. As explained in this [[http://​blog.litespeedtech.com/​2012/​11/​29/​change-php-ini-under-php-suexec-daemon-mode-not-possible/​|blog]],​ php.ini can not be overridden in suEXEC daemon mode.+1. In order to use PHP Selector and custom php.ini, lsphp5 needs to be in **NON** suEXEC daemon mode( for example, suEXEC worker mode or suEXEC process group mode). As explained in this [[http://​blog.litespeedtech.com/​2012/​11/​29/​change-php-ini-under-php-suexec-daemon-mode-not-possible/​|blog]],​ php.ini can not be overridden in suEXEC daemon mode.
  
 Admin Console => Configuration => Server => External App => lsphp5 Admin Console => Configuration => Server => External App => lsphp5