• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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