LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-02-2003, 07:48 AM   #1
nrmx
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.
Quote:
Premature end of script headers: first.pl
The script is located here http://lsu.homelinux.com/cgi-bin/first.pl . 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.

Regards,
nrmx
 
Old 05-02-2003, 07:54 AM   #2
jharris
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
Code:
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.

HTH

Jamie...
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:42 AM.

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