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
litespeed_wiki:cloudlinux:cl_lve_vs_lsws_php_suexec_max_conn [2016/10/05 18:57]
Rob Holda
litespeed_wiki:cloudlinux:cl_lve_vs_lsws_php_suexec_max_conn [2019/05/17 21:21] (current)
Kacey Schroeder
Line 8: Line 8:
 If the site has limits set on memory or its number of processes, then the user will receive 500 or 503 errors that the server cannot execute the script. If the site has limits set on memory or its number of processes, then the user will receive 500 or 503 errors that the server cannot execute the script.
  
-[[https://​www.litespeedtech.com/​docs/​webserver/​config/​general#​phpSuExecMaxConn|''​PHP suEXEC Max Conn''​]] is a LiteSpeed Web Server setting which specifies the maximum number of concurrent PHP processes that can be created by LSWS for each user when running PHP scripts in suEXEC mode. The default value for this setting is 5. This limit is per user per lshttpd process. Thus, if you have a 2-CPU license, this limit will be doubled. The limit will be 4x for a 4-CPU license, and so on.+[[https://​www.litespeedtech.com/​docs/​webserver/​config/​general#​phpSuExecMaxConn|PHP suEXEC Max Conn]] is a LiteSpeed Web Server setting which specifies the maximum number of concurrent PHP processes that can be created by LSWS for each user when running PHP scripts in suEXEC mode. The default value for this setting is 5. This limit is per user per lshttpd process. Thus, if you have a Web Host Professional ​license, this limit will be doubled. The limit will be 4x for a Web Host Enterprise ​license, and so on.
  
 Limits on entry processes(EP) control the number of entries into an LVE. NPROC controls the total number of processes within an LVE. Once the limit is reached, no new processes can be created (until another one dies). When that happens, the NPROC counter is incremented. In these cases, LSWS might return 500 or 503 errors. Limits on entry processes(EP) control the number of entries into an LVE. NPROC controls the total number of processes within an LVE. Once the limit is reached, no new processes can be created (until another one dies). When that happens, the NPROC counter is incremented. In these cases, LSWS might return 500 or 503 errors.
Line 15: Line 15:
  
 For non-shared hosting environments,​ ''​PHP suEXEC Max Conn''​ can be adjusted to values a little higher such as 50 or even 500 but generally not over 1000. For non-shared hosting environments,​ ''​PHP suEXEC Max Conn''​ can be adjusted to values a little higher such as 50 or even 500 but generally not over 1000.
 +
 +The easiest way to determine what the SuExec Max Conn limit should be is to use the following equation:
 +
 +<​html><​center><​strong>​SuExec_MaxConn = CloudLinux EP / #CPU License</​strong></​center></​html>​
 +
 +For example, if you have an EP limit of 20 and a Web Host Professional license:
 +
 +<​html><​center><​strong>​SuExec_MaxConn = 20 / 2</​strong></​center></​html>​
 +
 +The result of this equation is the maximum number that the SuExec Max Conn field should be; in this case SuExec Max Conn should be set to 10. If the CloudLinux EP or #CPU License is an odd number ( other than 1 ), be sure to round the SuExec Max Conn result down as rounding up may go over the maximum CloudLinux EP limit and create additional issues.
 +
  • Admin
  • Last modified: 2016/10/05 18:57
  • by Rob Holda