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
Last 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 [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 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.
  • Admin
  • Last modified: 2023/01/31 20:51
  • by Lisa Clarke