Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem executing script

Status
Not open for further replies.

bill1one

Programmer
Sep 29, 2004
93
0
0
US
I have a script that I am trying to execute from my cgi-bin. I believe it isn't working because the server isn't recognizing the cgi-bin as executable files.

I'm using Apache 2 for Windows.

Here is the excerpt from my config file:

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"

<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

The locations presented here are exactly where the cgi-bin is located.

Any help would be appreciated.


 
What version of perl are you using?

Can we see some of the code?

What do the error logs say?

Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
I'm using Perl v5.8.6.
I'm not getting any error messages, simply when I click the "submit" button to execute the code, it displays the actual code instead of executing it. That's why I thought it was a problem with the way in which I configured the server.
 
I could be wrong, but check for this line in your httpd.conf file:

# To use CGI scripts:
AddHandler cgi-script .cgi

You have to tell apache what extensions are executable files as well. If you are using .pl scripts, try adding .p after the .cgi - otherwise rename your .pl to .cgi.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top