Perl errors

Alexander Dalloz ad+lists at uni-x.org
Mon Nov 8 19:35:42 UTC 2004


Am Mo, den 08.11.2004 schrieb Brian McDonald um 20:18:

> Alexander this simple script does not work either in Apache but works on the
> command line.
> 
> #!/usr/bin/perl -w
> use warnings;
> print "Content-type: text/html";
> print "hello WORLD"."\n";

It should be:

$ cat /var/www/cgi-bin/test1.pl

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";

Taken from http://httpd.apache.org/docs-2.0/howto/cgi.html. Validated
here that it works.

> here is my httpd.conf

[ ... ]

> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> 
> <Directory "/var/www/cgi-bin">
> Options None
> Order allow,deny
> Allow from all
> AddHandler cgi-script .cgi .pl

The AddHandler not needed in the ScriptAlias defined directory.

> </Directory>

[ ... ]

> AddHandler cgi-script .cgi

The .cgi globally defined as CGI file.

> Brian

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.8-1.521smp 
Serendipity 20:30:00 up 19 days, 18:09, load average: 0.28, 0.19, 0.26 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041108/8fba4b8c/attachment-0001.sig>


More information about the fedora-list mailing list