mod_fcgid + Apache 2.2 fcgi server limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

a problem I once believed solved reappears on one of my servers now - it's a 
IA32 box running Gentoo, Apache 2.2.8 w/ mod_fcgid to acchieve per-user PHP5.
I use wrapper scripts like the following to set environmental variables to 
restrict mod_fcgid from spawning too many processes and also have it kill PHP 
instances after a number of requests to avoid potential memory leaks: 
http://pasted.at/ada0ab314d.html

The problem now is that these limits do not seem to apply- Today, I saw my 
httpd spawn a whopping 31 php-cgi processes, just enough that the user's 
ulimit kicks in. I don't want this to happen, and have these values kick in 
instead: http://pasted.at/0d20a81b7d.html

I do not know much about the specific inner workings of mod_fcgid, though if 
the module actually uses signals to end its child-processes, problems should 
arise from the fact that the main apache process is running under a different 
EUID than all its php-cgi childs, right?

Has anyone in here a similar setup up and running, and knows how to avoid the 
situation presented above?

Thanks in advance for your suggestions!
-- 
with best regards:
- Johannes Truschnigg ( johannes.truschnigg@xxxxxx )

www: http://johannes.truschnigg.info/
phone: +43 650 2 133337
jabber: johannes.truschnigg@xxxxxxxxx

Please do not bother me with HTML-eMail or attachments. Thank you.

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux