• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Apache2 - where to set maxclients?

dako1312

New Pleskian
Hello,

i am using Plesk 12 / Ubuntu 14.04

in PLESK 11 i could set maxclients, ServerLimit ..... in /etc/apache2/apache2.conf
but i cannot find these settings in apache2.conf.

Where to configure these settings, in which file?


thanks ahead

best regards

Dave
 
On my test Plesk 12 server I see:

# grep MaxClients /etc/httpd/conf/httpd.conf
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
MaxClients 10
# MaxClients: maximum number of simultaneous client connections
MaxClients 10
 
On my test Plesk 12 server I see:
# grep MaxClients /etc/httpd/conf/httpd.conf

I dont have that file on my server. But i found /etc/apache2/mods-enabled/mpm_prefork.conf

the content:

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

I think "MaxRequestWorkers" is the same like "MaxClients" ???
 
I see on my Debian Plesk 12 server:

# grep MaxClients /etc/apache2/apache2.conf
# MaxClients: maximum number of server processes allowed to start
MaxClients 10
# MaxClients: maximum number of simultaneous client connections
MaxClients 10
# MaxClients: maximum number of simultaneous client connections
MaxClients 10

# cat /usr/local/psa/version
11.5.30 Debian 6.0 115140407.17
 
root@server:/etc/apache2# ls -lar | grep MaxClients
root@server:/etc/apache2#

(EMPTY...nothing found)

root@server:/etc/apache2# cat /usr/local/psa/version
12.0.18 Ubuntu 14.04 1200140626.18


There seems to be differences between versions, but why?
 
# ls -lar | grep MaxClients is incorrect command. Use grep for apache config file or use

# grep MaxClients /etc/apache2/*
 
# ls -lar | grep MaxClients is incorrect command. Use grep for apache config file or use

# grep MaxClients /etc/apache2/*

I did it. But theres absolutely no config file that contains "MaxClients".

root@server:/etc/apache2# cat apache2.conf | grep MaxClients
root@server:/etc/apache2#
 
Last edited:
Back
Top