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:lsapi-environment-variables [2019/09/19 20:39] Shivam Saluja [LSAPI_AVOID_FORK] |
litespeed_wiki:php:lsapi-environment-variables [2019/11/22 18:17] Michael Alegre [LSAPI_CLEAN_SHUTDOWN] Edited for grammar, clarity, etc. |
||
---|---|---|---|
Line 111: | Line 111: | ||
If set to a non-zero number, LiteSpeed Web Server will log requests into an error log file if a request takes longer than the specified number of milliseconds. This can help identify scripts that are slowing down your server. | If set to a non-zero number, LiteSpeed Web Server will log requests into an error log file if a request takes longer than the specified number of milliseconds. This can help identify scripts that are slowing down your server. | ||
+ | |||
+ | ==== LSAPI_CLEAN_SHUTDOWN ==== | ||
+ | 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. |