Question

Apache Start/Spare Servers

Hi,

I am running a CentOS 7 Sentora installation and I cannot find the StartServers and SpareServers configuration for Apache.

I have looked in /etc/httpd/conf/httpd.conf

Am I looking in the wrong place? It is no where in that file.

Thank you!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

On CentOS, the prefork module is loaded in the file /etc/httpd/conf.modules.d/00-mpm.conf By default, there isn’t an specific configuration setup. You can add yours to /etc/httpd/conf/httpd.conf or create an additional config file in /etc/httpd/conf.d/

If you want to use the Ubuntu defaults, it would be:

<IfModule mpm_prefork_module>
        StartServers                     5
        MinSpareServers           5
        MaxSpareServers          10
        MaxRequestWorkers         150
        MaxConnectionsPerChild   0
</IfModule>

On Ubuntu, those are set in /etc/apache2/mods-available/mpm_prefork.conf