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 Both sides next revision
litespeed_wiki:php:detached_mode [2019/04/11 20:52]
Jackson Zhang [PHP Processes Won't Run Forever]
litespeed_wiki:php:detached_mode [2019/04/12 14:47]
Lisa Clarke [Changes to detached mode will be effective when a request comes] Copyediting
Line 49: Line 49:
 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 to ''​-1''​ to indicate "​unlimited"​ since, in process group mode, values under ''​30''​ will be automatically converted to the default of 30 seconds. If you want PHP to be running longer, try to enter a large number, such as ''​3600''​. 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 to ''​-1''​ to indicate "​unlimited"​ since, in process group mode, values under ''​30''​ will be automatically converted to the default of 30 seconds. If you want PHP to be running longer, try to enter a large number, such as ''​3600''​.
  
-===== Changes ​to detached mode will be effective when a request comes =====+===== When Changes ​Become Effective ​===== 
 +Changes to Detached Mode will be effective when the app restarts.
  
-Detached ​mode app wont be started when server ​startup, ​only when there is traffic hitting the external app, it will be started on demand, and stay there if LSWS restarts.+Remember, the Detached ​Mode app isn'​t ​started when the server ​starts up. It only starts ​when there is traffic hitting the external app. It will be started on demand, and remain running even if LSWS restarts.
  
-The same for the restart, only if an external application is about to serve a request, it will be checked if restart is needed.+The same for the restart. Only if an external application is about to serve a request, ​will it be checked ​and restarted ​if needed.
 ===== PHP Auto Configuration for Different Control Panels ===== ===== PHP Auto Configuration for Different Control Panels =====
 In previous versions of LSWS (5.2.x and earlier), external apps and PHP handlers are set up via the **External App** and **Script Hander** sections, respectively. In previous versions of LSWS (5.2.x and earlier), external apps and PHP handlers are set up via the **External App** and **Script Hander** sections, respectively.
  • Admin
  • Last modified: 2020/02/26 22:53
  • by Lucas Rolff