Fedora Core 2 Apache CGI

Brian McDonald bmcd at hawk.igs.net
Sun Nov 7 21:25:30 UTC 2004


I am trying to get Perl cgi running on my FC2 Apache.

my httpd.conf
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
Options +Execcgi
Order allow,deny
Allow from all
</Directory>

>From my error_log
[Sun Nov 07 15:43:00 2004] [error] [client 192.168.1.101] (2)No such file or
directory: exec of '/var/www/cgi-bin/test.cgi' failed
[Sun Nov 07 15:43:00 2004] [error] [client 192.168.1.101] Premature end of
script headers: test.cgi

The test cgi is in the /var/www/cgi-bin/ and has permissions of 755
cgi-bin has permissions of 755

this is the test.cgi script
#!/usr/bin/perl
use strict;
use warnings;
print "What is your username? ";
my $username;
$username = <STDIN>;
chomp($username);
print "Hello, $username.\n";


Thanks
Brian




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041107/e7e4251f/attachment-0001.htm>


More information about the fedora-list mailing list