Fedora Core 2 Apache CGI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux