[H-GEN] CGI Troubles.
Brent Wesley
brent at scanningsystems.com.au
Mon May 14 22:27:08 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 ]
> Conor Cunningham wrote:
>
> > 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
>
> Do you have the cgi module loaded?
Unless you have a ScriptAlias for the directory you are trying to load
the cgi
program from you will need to add the following to you httpd.conf
AddHandler cgi-script .cgi
Also you may want to try the following script as a test script.
#!/usr/bin/perl -w
use strict;
use CGI qw(:standard);
my $page = new CGI();
print $page->header;
$page->start_html('Hello World');
print "Hello World!\n";
$page->end_html;
Have Fun.
--
Brent Wesley
Systems Programmer
Scanning Systems (Aust.)
http://www.scanningsystems.com.au
PH: 07 3809 3333 FAX: 3809 3335
http://www.humbug.org.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