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

perl/cgi/linux newbie question

Status
Not open for further replies.

mover50

Programmer
Aug 3, 2004
77
US
I have installed Apache as my web server on linux and trying to use a perl script with cgi.
The Apache seems to be ok but I get a file not found when I try to run the perl script.
The url I use is;


hyper//localhost/home/mover50/Linux/chap03/example16

(with hyper actually being http:)

That is where the script file is located and it looks like this:

#! /usr/bin/perl
# The HTML tags are embedded in the here document to avoid using
# multiple print statements
print <<EOF; # here document in a CGI script
Content-type: text/html
<HTML><HEAD><TITLE>Town Crier</TITLE></HEAD>
<H1><CENTER>Hear ye, hear ye, Sir Richard cometh!!</CENTER></H1>
</HTML>
EOF

Any help would be most appreciated.

Thanks,

Kent

Kent (the worrier)
 
Try the Apache forum, you'll need to set up the directory mentioned to run cgi scripts, or move your cgi script into the cgi-bin folder which should have been set up by default


HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top