Report this

What is the reason for this report?

Apache Start/Spare Servers

Posted on April 8, 2015

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!



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.