imcompatible with cgi-wrap? I'm having a terrible time installing speedycgi in my own area on the server. The installation seems to complete but even the simplest test script bombs. I checked the error logs and it says "cgi-wrapper" not found. Any ideas?
Sep 7, 2002, 12:21 AM
User (57 posts)
Sep 7, 2002, 12:21 AM
Post #2 of 19
Views: 11387
Okay I'll go through step by step what I've tried. In a nutshell I want to run speedyCGI since I'm on a shared server and do not have root access for mod_perl. The steps below are the exact ones I've tried (sorry to be so verbose):
That seems to create the proper files in the proper places, although I did get some stuff about some failed tests. However when I run a simple cgi script it bombs. Some tests indicate it bombs on the shebang.
#!/home/sites/site45/bin/speedy
print "Content-type: text/html\n\nHello World!\n";
# Create a SpeedyCGI object
use CGI::SpeedyCGI;
my $sp = CGI::SpeedyCGI->new;
# See if we are running under SpeedyCGI or not.
print "Running under speedy=", $sp->i_am_speedy ? 'yes' : 'no', "\n";
Any ideas about what I'm doing wrong?
- gunzip CGI-SpeedyCGI-2.11.tar.gz
- tar -xvf CGI-SpeedyCGI-2.11.tar
- cd CGI-SpeedyCGI-2.11
- perl Makefile.PL PREFIX=/home/sites/site45
- make
- make test
- make install
That seems to create the proper files in the proper places, although I did get some stuff about some failed tests. However when I run a simple cgi script it bombs. Some tests indicate it bombs on the shebang.
Code:
#!/home/sites/site45/bin/speedy
print "Content-type: text/html\n\nHello World!\n";
# Create a SpeedyCGI object
use CGI::SpeedyCGI;
my $sp = CGI::SpeedyCGI->new;
# See if we are running under SpeedyCGI or not.
print "Running under speedy=", $sp->i_am_speedy ? 'yes' : 'no', "\n";
Any ideas about what I'm doing wrong?
Sep 7, 2002, 6:42 AM
User (57 posts)
Sep 7, 2002, 6:42 AM
Post #4 of 19
Views: 11382
Paul
Thanks, unfortunately the error log is prett non-descript. It says "handler "cgi-wrapper" not found for : /home/sites/site45/web/forums/speedytest.cgi"
Any chance someone running on a RaQ could repeat what I've done and see if it works or identify the problem?
Eric P
Thanks, unfortunately the error log is prett non-descript. It says "handler "cgi-wrapper" not found for : /home/sites/site45/web/forums/speedytest.cgi"
Any chance someone running on a RaQ could repeat what I've done and see if it works or identify the problem?
Eric P
Sep 9, 2002, 11:20 AM
Administrator (9387 posts)
Sep 9, 2002, 11:20 AM
Post #5 of 19
Views: 11344
Hi,
Edit your httpd.conf and look for where it says:
SetHandler cgi-wrapper
and replace that with
SetHandler cgi-script
Look for the line inside your <VirtualHost> directive.
Cheers,
Alex
--
Gossamer Threads Inc.
Quote:
"handler "cgi-wrapper" not foundEdit your httpd.conf and look for where it says:
SetHandler cgi-wrapper
and replace that with
SetHandler cgi-script
Look for the line inside your <VirtualHost> directive.
Cheers,
Alex
--
Gossamer Threads Inc.
Sep 9, 2002, 11:58 AM
Administrator (9387 posts)
Sep 9, 2002, 11:58 AM
Post #9 of 19
Views: 11331
Hmm, although if cgi-wrapper can't be found, I don't think any cgi will work, let alone SpeedyCGI (as this is an apache error saying it can't find the proper handler for the context you are in).
Cheers,
Alex
--
Gossamer Threads Inc.
Cheers,
Alex
--
Gossamer Threads Inc.
Sep 9, 2002, 12:02 PM
User (57 posts)
Sep 9, 2002, 12:02 PM
Post #10 of 19
Views: 11331
Paul
Thanks. My ISP will not modify any server config files at a users request. Configuration control is tight. I asked them if they would install SpeedyCGI in the base perl area but looks doubtful they will. So I'm left banging my head trying to get Speedycgi to run in my area. I've contacted Sam Horrocks (developer of speedycgi) and requested his help. Thus far he's been very receptive. I set him up an account on my server and hopefully he'll poke around and figure out why it won't work.
If I can't get speedycgi up and running I'll be very dissaponted. With the traffic my site sees I'm afraid running vanilla cgi will be too slow.
Thanks for all the help.
Thanks. My ISP will not modify any server config files at a users request. Configuration control is tight. I asked them if they would install SpeedyCGI in the base perl area but looks doubtful they will. So I'm left banging my head trying to get Speedycgi to run in my area. I've contacted Sam Horrocks (developer of speedycgi) and requested his help. Thus far he's been very receptive. I set him up an account on my server and hopefully he'll poke around and figure out why it won't work.
If I can't get speedycgi up and running I'll be very dissaponted. With the traffic my site sees I'm afraid running vanilla cgi will be too slow.
Thanks for all the help.
Sep 9, 2002, 12:24 PM
Veteran (19537 posts)
Sep 9, 2002, 12:24 PM
Post #15 of 19
Views: 11330
Normally it if works from ssh and not the browser it *can* be a simple issue like the wrong chmodding or directory permissions. Have you checked all those?....or even typos in the shebang line?
Make sure the directory gforum.cgi is in is 0755, make sure gforum.cgi is 0755 too
Make sure the directory gforum.cgi is in is 0755, make sure gforum.cgi is 0755 too
Sep 9, 2002, 12:42 PM
Administrator (9387 posts)
Sep 9, 2002, 12:42 PM
Post #16 of 19
Views: 11370
Instead of typing `perl script`, type: ./script and see if it works. Also, do a `killall speedy_backend` when you are done and try it from the web.
Cheers,
Alex
--
Gossamer Threads Inc.
Cheers,
Alex
--
Gossamer Threads Inc.
Sep 9, 2002, 2:35 PM
User (57 posts)
Sep 9, 2002, 2:35 PM
Post #18 of 19
Views: 11353
Alex
Now we are getting somewhere... I think. When I do ./speedytest.cgi from the shell prompt I get the following error /usr/bin/speedy_backend: No such file or directory Cannot spawn backend process
What is interesting is I specified #!/home/sites/site45/bin/speedy in my script. So it kind of looks like it found speedy in my area but doesn't know to look in the same directory for speedy_backend. Does this sound plausible?
Now we are getting somewhere... I think. When I do ./speedytest.cgi from the shell prompt I get the following error /usr/bin/speedy_backend: No such file or directory Cannot spawn backend process
What is interesting is I specified #!/home/sites/site45/bin/speedy in my script. So it kind of looks like it found speedy in my area but doesn't know to look in the same directory for speedy_backend. Does this sound plausible?
Sep 9, 2002, 2:50 PM
Administrator (9387 posts)
Sep 9, 2002, 2:50 PM
Post #19 of 19
Views: 11314
Have a look at:
http://daemoninc.com/SpeedyCGI/
and you can try:
#!/path/to/your/speedy -p/path/to/speedy_backend
as your first line. Not sure why it didn't recognize that when you compiled it, maybe Sam knows more.
Cheers,
Alex
--
Gossamer Threads Inc.
http://daemoninc.com/SpeedyCGI/
and you can try:
#!/path/to/your/speedy -p/path/to/speedy_backend
as your first line. Not sure why it didn't recognize that when you compiled it, maybe Sam knows more.
Cheers,
Alex
--
Gossamer Threads Inc.