Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > a bit of apache...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1466 of 1483
Post > Topic >>

a bit of apache + fcgid

by peljasz@[EMAIL PROTECTED] (Pawel Eljasz) Apr 28, 2008 at 11:18 AM

egards everybody
just subscribed, and as always for simple reason - a problem
as in subject, php is just fine but perl script, apache does not 
implement suexec, apache uses fcgid_module (static)
whereas below lines are fine from within shell, apache+fcgid do not want
to work

#! /usr/bin/perl
use FCGI;
my $request = FCGI::Request();
while($request->Accept() >= 0)
 {
    print "Content-type: text/html\n\n";
    print "<H1><b>Hello World!</b></H1>";
 }
exit 0;

causes following line to appear in logs:
[Fri Apr 25 10:28:43 2008] [info] mod_fcgid: 
/opt/var/www/forum/check-perl.pl spawn score 13 >= 10, skip the spawn 
request
[Fri Apr 25 10:28:44 2008] [info] mod_fcgid: 
/opt/var/www/forum/check-perl.pl spawn score 12 >= 10, skip the spawn 
request
[Fri Apr 25 10:28:47 2008] [notice] mod_fcgid: process 
/opt/var/www/forum/check-perl.pl(10203) exit(server exited), terminated 
by calling exit(), return code: 255
and..
[Fri Apr 25 10:28:41 2008] [debug] arch/unix/fcgid_proc_unix.c(525): 
(111)Connection refused: mod_fcgid: can't connect unix domain socket: 
/opt/etc/httpd/run/mod_fcgid/10007.17
[Fri Apr 25 10:28:42 2008] [debug] arch/unix/fcgid_proc_unix.c(525): 
(111)Connection refused: mod_fcgid: can't connect unix domain socket: 
/opt/etc/httpd/run/mod_fcgid/10007.18
[Fri Apr 25 10:28:44 2008] [warn] mod_fcgid: can't apply process slot 
for /opt/var/www/forum/check-perl.pl

I even changed parent folder's (where socket files are kept) permissions 
to a+rw, it was o+rwx,a-rwx, did not help
please advise
cheers


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use"
– The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html
 




 1 Posts in Topic:
a bit of apache + fcgid
peljasz@[EMAIL PROTECTED]  2008-04-28 11:18:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Sep 5 12:06:10 CDT 2008.