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

Configuring Apache for Perl

Status
Not open for further replies.

curvv

IS-IT--Management
Jan 11, 2001
103
ZA
Hi,

I'm using Apache(newbie - iis bugs me) on Win2k.

I followed the manual to configure httpd.conf to use perl but I get the 'save file to disk' box when running a cgi script.

Please could anyone help me set this up properly?

thanx
######## CtN ########
######## CtN ########
 
set this reference in the httpd.conf file

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/" to whatever u want. place your .pl scripts into this folder and everything should work

test your installation with the default cgi-bin folder and see if the installation is working as is e.g.

 
I still get the 'save file to disk' box.

thanx anyway ######## CtN ########
 
In the httpd.conf file, look for a section that shows addhandler cgi-script .cgi, and make sure it is uncommented (without the # sign before it).


Hope this helps!!!

Rninja
 
Could it perhaps be because I changed the port to 81?

I'm testing it on a machine running iis, so I had to change the port for apache to 81.

I'm not sure if this might have any impact on perl.

??

thanx ######## CtN ########
 
no, the port number shouldn't cause this. if your check

and you get the apache home page, everything is working fine. it is possible to turn off IIS and leave the port unchanged in apache
 
Make sure that you use all the extions in the addHandle line like:

addhandler cgi-script .cgi
addhandler cgi-script .pl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top