Perl / CGI scripts not working
Posted by: sylvain38 (192.117.158.---)
Date: May 02, 2006 11:17AM

I have the same problem as Amir Ali from 12/4/06.
I can run .pl scripts if they are in /cgi-bin, but not if they are in the DocumentRoot dir. Scripts with extension .cgi I can't run at all. I did everything that was suggested to Amir Ali, but it still doesn't work. Any ideas?


Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: May 03, 2006 08:18PM

open httpd.conf

change:
<Directory "C:/wamp/www">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks

to:

<Directory "C:/wamp/www">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks ExecCGI


change this:
#AddHandler cgi-script .cgi

to
AddHandler cgi-script .cgi

save the file, restart apache

Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: sylvain38 (192.117.158.---)
Date: May 04, 2006 01:28PM

I had that already. Also this is uncommented:

LoadModule cgi_module modules/mod_cgi.so


Still doesn't handle .cgi files. Browser gives me "Server Internal Error".

Any other ideas?

Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: May 06, 2006 01:39PM

make sure you have the correct location to perl in the top line of all your perl files
#!c:/wamp/perl/bin/perl

Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: sylvain38 (192.117.158.---)
Date: May 06, 2006 05:26PM

Yes I do. Any other ideas?

Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: May 09, 2006 04:15AM

try changing this line from my previous post above:
Options Indexes FollowSymLinks ExecCGI

Change it to:
Options Indexes FollowSymLinks +ExecCGI

Also try changing this line:
AddHandler cgi-script .cgi

Change it to:
AddHandler cgi-script .cgi .pl

Save the file, and restart apache for the new settings to take effect.

Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: sylvain38 (192.117.158.---)
Date: May 09, 2006 06:04AM

I already tried those things. It didn't make any difference. I guess you must be running out of suggestions.

Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: May 10, 2006 01:14PM

where are you saving your cgi files at?

make sure you restart apache for new settins to take effect.

Options: ReplyQuote
Re: Perl / CGI scripts not working
Posted by: cyber_kaley20 (202.138.171.---)
Date: May 16, 2006 12:06PM

I just going to try that nothing happens to run the .pl file to my server

HOW? HOW? any one can help me pls.....



Escaler

Options: ReplyQuote


Sorry, only registered users may post in this forum.