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:cloudlinux:php-selector [2016/06/16 16:01]
Jackson Zhang [Installation]
litespeed_wiki:cloudlinux:php-selector [2020/07/18 11:34] (current)
qtwrk
Line 6: Line 6:
 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 suEXEC ​non-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.+In brief, Cloudlinux'​ PHP Selector, LVE Manager and CageFS need to be installed and enabled; LSWS' lsphp5 external app PHP process mode needs to be in non-daemon mode (for example, ​Worker ​mode or ProcessGroup ​mode. 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]] and [[http://​docs.cloudlinux.com/​index.html?​litespeed_support.html|Cloudlinux PHP Selector LiteSpeed Support]] documentation. You can also check [[http://​docs.cloudlinux.com/​index.html?​php_selector.html|Cloudlinux PHP Selector]] and [[http://​docs.cloudlinux.com/​index.html?​litespeed_support.html|Cloudlinux PHP Selector LiteSpeed Support]] documentation.
Line 53: Line 53:
     lstestc@cptest [~]#     lstestc@cptest [~]#
  
-Please also refer to CloudLinux [[http://​docs.cloudlinux.com/​installation.html|document]] for installation details.+Please also refer to CloudLinux [[http://​docs.cloudlinux.com/​index.html?​cloudlinux_installation.html|document]] for installation details.
  
  
Line 60: Line 60:
 Configure php selector in LiteSpeed Web Server setting to enable it for LSWS: Configure php selector in LiteSpeed Web Server setting to enable it for LSWS:
  
-  - Enable CloudLinux CageFS support ​ (Admin Console => Configuration => Server => General => Cloud-Linux,​ select applicable option, e.g., CageFS +  - Enable CloudLinux CageFS support ​under **Admin Console => Configuration => Server => General => Cloud-Linux**and select ​an applicable option, e.g., ''​CageFS''​ 
-  - Enable PHP suEXEC ​Admin Console => Configuration => Using Apache Configuration File => PHP suEXEC, set to Yes +  - Enable ​**PHP suEXEC** under **Admin Console => Configuration => Using Apache Configuration File => PHP suEXEC**, set to ''​Yes''​ 
-  - LSPHP5 external app runs in suEXEC ​non-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. +  - LSPHP5 external app runs in non-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 Worker ​mode or ProcessGroup ​mode setup. 
-  - In lsphp5 external app (Admin Console => Configuration => Server => External App => lsphp5)+  - In lsphp5 external app **Admin Console => Configuration => Server => External App => lsphp5**
  
 Change ​ Change ​
Line 79: Line 79:
 See screenshot below: See screenshot below:
  
-{{ http://​i45.tinypic.com/​34t5v0n.png?700 |LSWS LSPHP5 setting}}+{{:litespeed_wiki:​cloudlinux:​cloudlinux-php-selector.png|}}
  
  
  
-**Notes**: In order to use PHP Selector and custom php.ini, lsphp5 needs to be in suEXEC ​**NON**-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.+**Notes**: In order to use PHP Selector and custom php.ini, lsphp5 needs to be in **NON**-daemon mode( for example, ​Worker ​mode or ProcessGroup ​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 Daemon ​mode.
  
-Admin Console => Configuration ​=> Server ​=> External App => lsphp5+**Configuration > Server > External App > lsphp5**
 <​code>​ <​code>​
 Run On Start Up => Yes or No Run On Start Up => Yes or No
  • Admin
  • Last modified: 2016/06/16 16:01
  • by Jackson Zhang