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
Next revision Both sides next revision
litespeed_wiki:php:which_php_setup_am_i_using [2018/08/06 21:33]
Lisa Clarke [suEXEC ProcessGroup mode] Proofreading
litespeed_wiki:php:which_php_setup_am_i_using [2018/08/24 21:09]
Jackson Zhang [Should I use SuEXEC or non-SuEXEC?]
Line 4: Line 4:
 To enable SuEXEC for cPanel, Plesk, or another control panel, ''​Admin Console -> Server -> Server General -> Using Apache Configuration File -> PHP suEXEC''​ should be set to ''​Yes''​. ​ To enable SuEXEC for cPanel, Plesk, or another control panel, ''​Admin Console -> Server -> Server General -> Using Apache Configuration File -> PHP suEXEC''​ should be set to ''​Yes''​. ​
  
 +To enable SuEXEC for LSWS native or on OpenLiteSpeed,​ you will need to create external apps (name should be unique and different than server level external apps and other virtual host external apps, for example, lsphp_$vhost;​ also set it to run as username:​usergroup to implement PHP SuEXEC) and script handler pointing to the newly created external app under each virtual host. 
 ===== Which PHP setup am I using? ===== ===== Which PHP setup am I using? =====
  
Line 72: Line 73:
 Guides for adding include files can be found on [[https://​confluence2.cpanel.net/​display/​EA/​Modify+Virtualhost+Containers+With+Include+Files|this page]] from cPanel'​s site. Guides for adding include files can be found on [[https://​confluence2.cpanel.net/​display/​EA/​Modify+Virtualhost+Containers+With+Include+Files|this page]] from cPanel'​s site.
  
-Process Group Mode is similar to Apache php-fpm mode. The difference is: with Apache, the parent process of php-fpm is not controlled by Apache, and it keeps running; with LiteSpeed, LiteSpeed uses LSAPI, and the PHP will exit if idle for a while (in a shared hosting environment). ​ For LSWS 5.2.8 and lower versions, PHP processes will stop when LSWS restarts, and the opcode cache will be reset. Starting from LSWS 5.3RC2 and above, LSPHP will run in detached mode and an LSWS restart //​won'​t//​ stop PHP processes. The LSPHP parent will just follow the timeout where [[https://​www.litespeedtech.com/​docs/​webserver/​config/​extapps/​lsapi#​extMaxIdleTime|"​Max Idle time"​]] is set.+Process Group Mode is similar to Apache php-fpm mode. The difference is: with Apache, the parent process of php-fpm is not controlled by Apache, and it keeps running; with LiteSpeed, LiteSpeed uses LSAPI, and the PHP will exit if idle for a while (in a shared hosting environment ​and set at [[https://​www.litespeedtech.com/​docs/​webserver/​config/​extapps/​lsapi#​extMaxIdleTime|"​Max Idle time"​]]).  For LSWS 5.2.8 and lower versions, PHP processes will stop when LSWS restarts, and the opcode cache will be reset. Starting from LSWS 5.3RC2 and above, LSPHP will run in detached mode and an LSWS restart //​won'​t//​ stop PHP processes. The LSPHP parent will just follow the timeout where [[https://​www.litespeedtech.com/​docs/​webserver/​config/​extapps/​lsapi#​extMaxIdleTime|"​Max Idle time"​]] is set.
  
 References: References:
  • Admin
  • Last modified: 2019/05/23 19:09
  • by Jackson Zhang