This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
litespeed_wiki:php:lsapi-environment-variables [2019/11/22 17:04]
litespeed_wiki:php:lsapi-environment-variables [2019/11/22 18:17] (current)
Michael Alegre [LSAPI_CLEAN_SHUTDOWN] Edited for grammar, clarity, etc.
Line 113: Line 113:
-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 problemNow 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.
  • Admin
  • Last modified: 2019/11/22 18:17
  • by Michael Alegre