Differences

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

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:cl_phpselector_how_to [2013/03/19 00:38]
127.0.0.1 external edit
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 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.
  
  
Line 37: Line 39:
 LiteSpeed Web Server: LiteSpeed Web Server:
  
-  - CloudLinux (Admin Console => Configuration => Server => General): CageFS +  - Enable ​CloudLinux ​CageFS support  ​(Admin Console => Configuration => Server => General ​=> Cloud-Linux): CageFS 
-  - LSPHP5 external app runs in NON suEXEC daemon mode ONLY (Run On Start Up => Yes or No) +  - 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). 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 51: Line 52:
 === b. Update CageFS and LVE Manager RPMs from CloudLinux === === b. Update CageFS and LVE Manager RPMs from CloudLinux ===
  
-    yum update cagefs lvemanager ​--enablerepo=cloudlinux-updates-testing+    yum update cagefs lvemanager ​
  
 As of this writing (3/15/13), the correct package version should be: As of this writing (3/15/13), the correct package version should be:
Line 112: 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