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

Apache Error ! Path or What?

Status
Not open for further replies.

felonius

Programmer
Jun 3, 2003
4
GH
I have just installed Apache on my win98 and trying to use it to test cgi scripts but it returns errors on all the scripts i have.

i dont know if it is the document root line in the script which reads like.

#!/usr/bin/perl

should this line be something else?

Please help
 
#There are two approches to setting up a webserver with #apapche on a win32 machine.

#1st: Rarely used I might add

#Set you shebang line to location of perl on win32
#!c:/perl/perl
#Comment this line in the http.conf file
#ScriptInterpreterSource registry

#2nd More commonly used

#Goto the http.conf file

#Uncomment this or if it does not exist add it.
ScriptInterpreterSource registry

#Now associate all .pl and .cgi file endings with the perl #interpreter let me know if you dont know how to do that.

#next again in the http.conf file
#put this directive
AddHandler cgi-script .cgi



haunter@battlestrata.com
 
felonius, what you have is the unix syntax for the shebang in your PERL scripts. These scripts must have been written for a unix server. You have to comment this out or rewrite it to your actual path in Windows 98 for perl.exe, as Haunter has described.

Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top