Ubuntu – mpm-prefork-module config doesn’t seem to apply

apache-2.2Ubuntu

I'm running Ubuntu 12.10 and Apache 2.4.6.

I've got

<IfModule mpm_prefork_module>
    StartServers        20
    MinSpareServers     20
    MaxSpareServers     30
    MaxClients          256
    MaxRequestsPerChild 1000
</IfModule>

In my apache2.conf file, but it doesn't seem to do anything, as even under heavy stress testing, the server only spawns up to 10 apache processes.

Any advice?

Thanks.

Best Answer

The /etc/apache2/mods-enabled/mpm_prefork.conf file's configuration of these directives is almost certainly overriding this configuration in your apache2.conf, due to the Include happening later in the apache2.conf than those directives are configured.

Change them in mpm_prefork.conf for your changes to take effect.