Re: fedora apache cgi-perl

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

 



the error message in the error log file is : Premature end of script headers: helloword.pl

On Jan 15, 2007, at 4:27 PM, replies-lists- redhat@xxxxxxxxxxxxxxxxxxxxx wrote:

look in your server's error log - it will likely be insightful.

by the way, you do *not* want the file world (or likely even group)
writable. it should be owned and writable only by an account other than
the one that your web server runs as.

  - Rick

------------ Original Message ------------
Date: Monday, January 15, 2007 04:18:58 PM +0000
From: Thibaut <thibaut@xxxxxxxxxx>
To: fedora-list-english <fedora-list@xxxxxxxxxx>
Subject: fedora apache cgi-perl

Hi,

I try to run a perl script in my webserver. Therefore I put a script
in the /var/www/cgi-bin/ directory. I have put the 777 permission on
it. Here is the script :

# !/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html><head><title>Hello World!! </title></head>\n";
print "<body><h1>Hello world</h1></body></html>\n";


Here is the configuration of my apache server :
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

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


But i have the "Internal Server Error" error message when i lauch
http://[IP]/cgi-bin/scriptName.pl
What is the problem ?

---------- End Original Message ----------


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux