Skip to content
View Categories

Litespeed Webserver Config (max connections)

< 1 min read

This can also be accomplished via terminal. Open /usr/local/lsws/conf/httpd_config.xml with your favorite editor (nano, vim, emacs, etc), like so (an example using vi):

$ sudo vi /usr/local/lsws/conf/httpd_config.xml

Find the main <httpServerConfig></httpServerConfig> block and add/edit the following lines near the top:
<phpSuExec>1</phpSuExec>
<phpSuExecMaxConn>10</phpSuExecMaxConn>

Set phpSuExec to 1 to enable it if it is not already enabled and set phpSuExecMaxConn to the maximum number of concurrent LSPHP processes you want to allow.
To have the changes you have just made to /usr/local/lsws/conf/httpd_config.xml take effect inside of LiteSpeed Web Server, run the following:
$ sudo touch /usr/local/lsws/admin/tmp/.lsphp_restart.txt
$ sudo systemctl restart lsws