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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl scripts are prompting me to download

Status
Not open for further replies.

robman70

Technical User
Aug 6, 2002
90
When i try to run the perl script that was already in apache (printenv.pl) a box pops up asking where to download the file to, what do i need to change to make apache run the script in my web browswer...im pretty sure its something in the httpd.conf file but i dont know what, heres the entry for my cgi-bin:
<Directory &quot;C:/Program Files/Apache Group/Apache2/cgi-bin&quot;>
Options Indexes Multiviews ExecCGI
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
and have uncommented the AddHandler line
any ideas?
 
You have two Options lines in there. The last one is the one that would be used, and it's Options None, meaning that ExecCGI would be disabled. Remove the second line and it should work. //Daniel
 
I took the line 'Options None' out and restarted apache...but its still trying to make me download the file
 
Try adding
Code:
AddHandler cgi-script .cgi .pl
between the <Directory &quot;..&quot;></Directory> tags.

(Is the .pl extension is on the AddHandler line that you uncommented?)

jaa
 
I tried what you said justice, my entry now looks like this:
<Directory &quot;C:/Program Files/Apache Group/Apache2/cgi-bin&quot;>
Options ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
</Directory>
but i still get a prompt to download when trying to get to .pl files, for .cgi files i get:
Server error!
Error message:
couldn't create child process: 22505: C:/Program Files/Apache Group/Apache2/cgi-bin/test.cgi
If you think this is a server error, please contact the webmaster
Error 500
localhost
08/08/02 12:04:22

any other ideas??

....yes i do very actively use perl on this computer, so to answer wullie..yes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top