[H-GEN] CGI Troubles.
Conor Cunningham
cunningham at uq.net.au
Mon May 14 08:46:45 EDT 2001
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
Hello All,
For the sake of my studies, I have recently setup and Apache Server at
home. Viewing Web documents is not a problem at all. It seems to be
executing CGI scripts, that is the problem.
I have my aliases in the httpd.conf file correct, well at least im
pretty damn certain. All script have 755 as their permissions.
Below are two error msgs I get, the first from the browser, the second
from Apache's error_log.
I have also included the code from the script. N.B I didnt write the
script. A lecturer did, so laugh at him when you read what he put in it.
Any help preventing me from going insane would be great.
Thanks.
-----------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, root at localhost and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.
More information about this error may be available in the server error
log.
Apache/1.3.12 Server at 127.0.0.1 Port 80
-----------------------------------
-----------------------------------
Can't open perl script "/var/www/cgi-bin/first.cgi": Function not
implemented
[Mon May 14 22:36:13 2001] [error] [client 127.0.0.1] Premature end of
script headers: /var/www/cgi-bin/first.cgi
---------------------------------------
Here is a copy of the script
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print << "ending_print_tag";
<html><title>My first CGI</title>
<background="#000000" text="#FF0000">
</head><body>
<h1> My First CGI </h1>
<em> HELLO, INTERNET! </em>
<hr noshade>
Watch out cyber space, another programmer is on the loose ;-)
</body></html>
ending_print_tag--
Regards,
Conor Cunningham
Cunningtek Technologies
cunningham at uq.net.au
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list