Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-02-2003, 07:48 AM   #1
LQ Newbie
Registered: Mar 2003
Posts: 26

Rep: Reputation: 15
cgi error in from apache

Hi I am trying to get my cgi-bin dir working. Apache is giving me this 500 error.
Premature end of script headers:
The script is located here . It is a simple pearl script just the echo the words "Hello World", but I can't seem to figure out what the problem is.

Old 05-02-2003, 07:54 AM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Sounds to me like you are not printing out an htlm header of any kind. Try putting
use CGI qw(:standard);
print header;
at the top of the CGI script. This will send a standard head to the browser. If you still get an error post a copy of the script.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RH 8.0 CGI 500 error (apache) 3Dxx Linux - General 46 06-27-2005 05:51 AM
Apache::MP3 Authentication or CGI Error WopMaster8 Linux - Software 0 03-23-2005 12:08 PM
Apache & CGI error 500 sortia Linux - Newbie 2 01-24-2005 11:38 AM
Apache and cgi 403 Error. tethysgods Linux - Software 2 08-30-2004 09:06 AM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 01:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration