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/11/22 17:03] Jackson Zhang |
litespeed_wiki:php:lsapi-environment-variables [2019/11/22 18:17] Michael Alegre [LSAPI_CLEAN_SHUTDOWN] Edited for grammar, clarity, etc. |
||
---|---|---|---|
Line 113: | Line 113: | ||
==== LSAPI_CLEAN_SHUTDOWN ==== | ==== LSAPI_CLEAN_SHUTDOWN ==== | ||
- | It is avaliable starting PHP LiteSpeed SAPI 7.6. ''clean shutdown" means to clean up if PHP crash or abnormal exit. For example, sometimes PHP 5.x still has strange error due to internal corruption and manually killing PHP process will fix the problem. Now you can use ''LSAPI_CLEAN_SHUTDOWN'' environment variable to let lsphp to automatically fix such abnormal crash issue. 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. |