Apache Start/Spare Servers

April 8, 2015 1.1k views


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!

1 Answer

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

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

Have another answer? Share your knowledge.