Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:php:lsapi-environment-variables [2019/11/22 16:57] Jackson Zhang |
litespeed_wiki:php:lsapi-environment-variables [2021/01/31 14:43] George Wang update LSAPI_MAX_PROCESS_TIME default from 300 to 3600 |
||
---|---|---|---|
Line 84: | Line 84: | ||
==== LSAPI_MAX_PROCESS_TIME ==== | ==== LSAPI_MAX_PROCESS_TIME ==== | ||
- | Default Value: ''300'' seconds | + | Default Value: ''3600'' seconds |
The ''LSAPI_MAX_PROCESS_TIME'' environment variable controls the total time that a PHP process can spend processing a request. It is only effective in ProcessGroup or Daemon mode. The parent process will kill child processes spending more time than this threshold. | The ''LSAPI_MAX_PROCESS_TIME'' environment variable controls the total time that a PHP process can spend processing a request. It is only effective in ProcessGroup or Daemon mode. The parent process will kill child processes spending more time than this threshold. | ||
Line 113: | Line 113: | ||
==== LSAPI_CLEAN_SHUTDOWN ==== | ==== LSAPI_CLEAN_SHUTDOWN ==== | ||
- | It is avaliable starting PHP LiteSpeed SAPI 7.6. When set ''LSAPI_CLEAN_SHUTDOWN=0'', it disables ''clean shutdown''; while set '' LSAPI_CLEAN_SHUTDOWN=1'', it enables ''clean shutdown''. For PHP 7.0+, it is set to ''on'' by default; For lower versions than PHP 7.0, it is set to be ''off'' by default. | + | Available as of PHP LSAPI v7.6. |
+ | |||
+ | The ''LSAPI_CLEAN_SHUTDOWN'' environment variable can be used to instruct LSPHP to automatically perform a clean shutdown. A clean shutdown refers to performing cleanup after a PHP crash or abnormal exit (such as manually killing the process). | ||
+ | |||
+ | Setting ''LSAPI_CLEAN_SHUTDOWN=0'' will disable the clean shutdown feature while setting '' LSAPI_CLEAN_SHUTDOWN=1'' will enable it. Clean shutdown is enabled by default for PHP versions 7.0+ and disabled by default for all prior versions. |