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
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 17:04]
Jackson Zhang [LSAPI_CLEAN_SHUTDOWN]
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 ====
 +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.
  • Admin
  • Last modified: 2023/01/31 20:51
  • by Lisa Clarke