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 Both sides next revision
litespeed_wiki:php:503-errors [2018/10/01 20:05]
Jackson Zhang [The lsphp process is killed unexpectedly by CSF/LFD]
litespeed_wiki:php:503-errors [2018/10/01 20:17]
Jackson Zhang [Misconfiguration of lsphp external application]
Line 299: Line 299:
     <​procHardLimit>​1500</​procHardLimit>​     <​procHardLimit>​1500</​procHardLimit>​
  
-but some user intentionally removed the above without any clear purpose. When the resource limit was not set, LSWS will use CGI resource limit as default while the CGI resource limit is too low to meet the requirement. If the PHP is configured to have 500 max connections, it requires to have 500 children processes, the process limit needs to be setup to minimum 1000. The above misconfiguration caused 503 error on LSWS. +but some user intentionally removed the above without any clear purpose. When the resource limit was not set, LSWS will use CGI resource limit as default while the CGI resource limit is too low to meet the requirement. ​ 
 + 
 +If the user configured ​PHP to have 500 max connections
 +     <​maxConns>​500</​maxConns>​ 
 +It requires to have 500 children processes:  
 +     <​env>​PHP_LSAPI_CHILDREN=500</​env>​ 
 + 
 +"500 max connections"​ setting requires "process limit" ​to be set at a minimum ​of "1000", while the user incorrectly removed PHP process limit settings. The above misconfiguration caused 503 PHP error when running ​LSWS. 
  
 We recommend not to remove anything if you are unsure and cause an uncertain problem, such as 503 error as this case.  We recommend not to remove anything if you are unsure and cause an uncertain problem, such as 503 error as this case. 
  • Admin
  • Last modified: 2020/02/11 14:26
  • by Jackson Zhang