4

While asking this question, I feel that it may be dumb - but I have no idea at the moment...

How to find out the current setting for FcgidMaxProcesses on Apache?

Background

I experienced the following error: mod_fcgid: can't apply process slot for ...

My Apache2 allows MaxClients=500 and the default configuration for FcgidMaxProcesses is 1000, according to mod_fcgid docs. Therefore, the MaxProcesses should not be the limiting factor - but before starting to play around with the settings, I would prefer to check the current value. So ... how do I?

Thank you

Settings

# apache2.conf
<IfModule mpm_worker_module>
    StartServers             2
    ServerLimit             32
    MinSpareThreads         25
    MaxSpareThreads        100
    ThreadLimit             64
    ThreadsPerChild         50
    MaxClients            1000
    MaxRequestsPerChild  10000
</IfModule>

# VirtualHost configuration
<IfModule mod_fcgid.c>
    FcgidWrapper /var/www/php-fcgi-starter .php
    # Allow request up to 33 MB
    FcgidMaxRequestLen 34603008
    FcgidIOTimeout 300
    FcgidBusyTimeout 3600
</IfModule>

#/var/www/php-fcgi-starter
#!/bin/sh
export PHPRC="/etc/php5/cgi"
exec /usr/bin/php5-cgi
BurninLeo
  • 940
  • 3
  • 12
  • 31

1 Answers1

4

This is the purpose of mod_info. On the server-info page, you will see all the possible configuration options and if they are customized. If there is no custom setting, then it is the compile-time default, which does seem to be 1000 as confirmed by the documentation and source code (line 48).

Note: don't use the Location /server-info or create a link to your mod_info Location or you'll end up in Google like this server: http://dice.csail.mit.edu/server-info#mod_fcgid.c

dialt0ne
  • 3,075