Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:php:detached_mode [2018/09/18 14:04] Lisa Clarke [PHP Auto Configuration for Different Control Panels] Proofreading |
litespeed_wiki:php:detached_mode [2019/02/13 20:44] Jackson Zhang [PHP Processes Won't Run Forever] |
||
---|---|---|---|
Line 27: | Line 27: | ||
touch <user_home_dir>/.lsphp_restart.txt | touch <user_home_dir>/.lsphp_restart.txt | ||
| | ||
+ | To make it compatible with CloudLinux mod_lsapi CRIU feature, server will restart PHP by ''mod_lsapi_reset_me'' as well | ||
+ | | ||
+ | touch <user_home_dir>/mod_lsapi_reset_me | ||
+ | |||
The user can also restart detached PHP processes from the 'Advanced' page of the [[litespeed_wiki:cpanel:cpanel-plugin|LiteSpeed Web Cache Manager cPanel plugin]], accessible from within their cPanel dashboard. | The user can also restart detached PHP processes from the 'Advanced' page of the [[litespeed_wiki:cpanel:cpanel-plugin|LiteSpeed Web Cache Manager cPanel plugin]], accessible from within their cPanel dashboard. | ||
Line 43: | Line 47: | ||
===== PHP Processes Won't Run Forever ===== | ===== PHP Processes Won't Run Forever ===== | ||
- | PHP Detached Mode doesn't mean that PHP will run forever. It will still follow the [[https://www.litespeedtech.com/docs/webserver/config/extapps/lsapi#extMaxIdleTime |Max Idle Time]] setting. If you want to make PHP live longer, just increase **Max Idle Time**. | + | PHP Detached Mode doesn't mean that PHP will run forever. It will still follow the [[https://www.litespeedtech.com/docs/webserver/config/extapps/lsapi#extMaxIdleTime |Max Idle Time]] setting. If you want to make PHP live longer, just increase **Max Idle Time**. Never set it as "-1" to means as "unlimited" since in process group mode, it will be automatically converted to default 30 seconds. If you want PHP to be running loner, try to enter a large number, such as "3600". |
===== PHP Auto Configuration for Different Control Panels ===== | ===== PHP Auto Configuration for Different Control Panels ===== | ||
Line 71: | Line 75: | ||
Change the PHP binary path: | Change the PHP binary path: | ||
{{ :litespeed_wiki:php:lsws53-php-override2.png?800 |}} | {{ :litespeed_wiki:php:lsws53-php-override2.png?800 |}} | ||
+ | |||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | * [[litespeed_wiki:php:detached_mode:handlers | Managing ea-phpxx and alt-phpxx differences between LSWS v5.3 and previous versions]] | ||
+ |