Help answer threads with 0 replies.
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 07-17-2004, 06:59 PM   #1
Registered: May 2004
Location: Texas
Posts: 277

Rep: Reputation: 30
Question Perl/CGI Problem "Premature end of script headers:"

I have upgraded to RH 9.0 from 7.1. I had the Perl and this script working fine before on 7.1. I have tried everything I can think of. I've changed the permissions, modified the script etc.

Anyway when I open the browser and get the error:

Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers:
If you think this is a server error, please contact the webmaster
Error 500

Sat 17 Jul 2004 06:40:41 PM CDT
Apache/2.0.40 (Red Hat Linux)

By the way I've seen many people with the same problem but none of them seem to have solutions that really help.

Any help would be great. If you would like I will post the script here.


Last edited by newuser455; 07-17-2004 at 08:48 PM.
Old 07-18-2004, 11:15 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Do you get any error messages in your apache error_log file when you access the page?

What are the current permissions on the file:
ls -l /path/to/

If you can post a copy of the script it would help as well.
Old 07-18-2004, 11:47 AM   #3
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Sorry, I forgot to say I just decided to forget it and switch back to RH 7.1. Thanks for you help anyway.



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
Premature end of script headers: CGI fatturi Linux - Newbie 4 07-19-2007 04:55 PM
Premature end of script headers bhomass Debian 1 12-02-2005 05:31 PM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
Premature end of script headers webhead Red Hat 5 09-22-2004 01:56 AM
"Premature end of script headers" bugging me ulto Programming 1 04-15-2004 06:38 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:11 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