Help - Search - Members - Calendar
Full Version: apache cant spawn a cgi script
The Planet Forums > Control Panels > cPanel/WHM
Dmytro
I receive strange error from all of my cgi scripts on
my new cpanel server. I have moved account from old one by
standard HOW-TO procedure, and all worked ok but I cant run any cgi script
Error message I receive in log is like this:
[Wed Dec 17 10:49:44 2003] [error] [client 193.41.xx.xx] (11)Resource temporarily unavailable: couldn't spawn child process: /home/test200/public_html/cgi-bin/go.pl

I have created a simple VHost to make things more clear:


ServerAlias www.test.2000.xx.xx test.2000.xx.xx
ServerAdmin webmaster@test.2000.xx.xx
DocumentRoot /home/test200/public_html
BytesLog domlogs/test.2000.xx.xx-bytes_log
ServerName www.test.2000.xx.xx
User test200
Group test200
CustomLog domlogs/test.2000.xx.xx combined
ErrorLog /home/test200/error.log
ScriptAlias /cgi-bin/ /home/test200/public_html/cgi-bin/

AddHandler cgi-script .pl



where the only file is go.pl:
#!/usr/local/bin/perl
print "Content-type:text/htmlnn";

print "Go
";


permissions is correct:
-rwxr-xr-x 1 test200 test200 77 Dec 17 10:57 go.pl

directories is setup correctly:

drwxr-xr-x 3 test200 test200 4096 Dec 17 10:19 public_html
drwxr-xr-x 2 test200 test200 4096 Dec 17 10:57 cgi-bin

and if I type http://test.2000.xx.xx/cgi-bin/go.pl in my browser, I receive error 500 and error message in my log:
[Wed Dec 17 10:49:44 2003] [error] [client 193.41.xx.xx] (11)Resource temporarily unavailable: couldn't spawn child process: /home/test200/public_html/cgi-bin/go.pl



Please help!
Dmytro
It was a suexec issue. Disabling/Enabling suexec from WHM helped.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.