I have installed Apache as my web server on linux and trying to use a perl script with cgi.
I am somewhat of a newbie with Apache, linux and perl.
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
How do I get this to work? Any help would be most appreciated.
Thanks,
Kent
I am somewhat of a newbie with Apache, linux and perl.
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
How do I get this to work? Any help would be most appreciated.
Thanks,
Kent