如何findApache上的FcgidMaxProcesses的当前设置?

在问这个问题的时候,我觉得这可能是愚蠢的 – 但我现在还不知道。

如何findApache上的FcgidMaxProcesses的当前设置?

背景

我遇到以下错误:mod_fcgid:无法应用进程槽…

根据mod_fcgid文档 ,我的Apache2允许MaxClients = 500,而FcgidMaxProcesses的默认configuration是1000。 因此,MaxProcesses不应该成为限制因素 – 但是在开始使用这些设置之前,我宁愿检查当前的值。 所以……我怎么样?

谢谢

设置

# 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 

这是mod_info的目的。 在服务器信息页面上,您将看到所有可能的configuration选项以及是否自定义。 如果没有自定义设置,那么这是编译时的默认设置,看起来好像是由文档和源代码 (第48行)确认的1000。

注意:不要使用Location /server-info或者创build一个到你的mod_info位置的链接,否则你最终会像Google这样的服务器: http ://dice.csail.mit.edu/server-info#mod_fcgid 。 C