Hi Tomás,

This is a system issue not an apache one. You are probably running out of
processes available since each CGI script is a new process. Imagine having
hundreds or thousands of users logged in and each starting a program to run.

You have a few choices. I have to assume you have a very busy site, or you
would not likely encounter these problems.

1. Change your system setting to allow for more users and processes.

2. Move to mod_perl so that your perl interpreter runs in the apache
process. (Make sure to read up on the differences. Poorly written scripts
can wreak havoc in this method.)

3. Move to PHP (my personal choice) and eliminate the security issues of SSI
and the process limitations of CGI.

Summary: IMHO CGI is no longer a valid choice for busy sites. It can cause
problems like these and result in too much time being spent on system
maintenance/configuration instead of using that time to write more code.
Make the move to one of the many module based scripting options (ie.
mod_perl, mod_php, zope, aol_server, cold fusion(commercial), etc.), you'll
be glad in the long run.

Have fun,
-- 
_________________________________________________________________
 Brian Ashe                     CTO
 [EMAIL PROTECTED]              Dee-Web Software Services, LLC.
 http://www.dee-web.com/
-----------------------------------------------------------------
You don't have to swim faster than the shark...
You just have to swim faster than the people you're with.

Monday, January 22, 2001, 11:34:06 AM, you wrote:

TGF> Hello,

TGF> I am having problems with the CGI scripts executed inside an HTML page
TGF> (using SSI).

TGF> The script is not executed and I have an entry in error_log saying this:
TGF>     > (11)Resource temporarily unavailable: couldn't spawn child process:
TGF>     > /mydirectory/myscript.pl

TGF> I changed these values in /etc/httpd.conf (but the problem existed before
TGF> and didn't improve after...):
TGF>     > Timeout 300
TGF>     > KeepAlive On
TGF>     > MaxKeepAliveRequests 0
TGF>     > KeepAliveTimeout 15
TGF>     > MinSpareServers 16
TGF>     > MaxSpareServers 64
TGF>     > StartServers 16
TGF>     > MaxClients 512
TGF>     > MaxRequestsPerChild 100000
TGF> (according to the suggestions of the "Securing - Optimizing Linux" book)

TGF> Any idea?

TGF> Thanks!
TGF> Tomás

TGF> Tomas Garcia Ferrari

TGF> Bigital
TGF> http://bigital.com



TGF> _______________________________________________
TGF> Redhat-list mailing list
TGF> [EMAIL PROTECTED]
TGF> https://listman.redhat.com/mailman/listinfo/redhat-list




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to