Question

Apache Start/Spare Servers

Posted April 8, 2015 3.1k views
Apache

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!

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.

×
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
</IfModule>

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

Submit an Answer