Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-07-2007, 01:30 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Question Premature end of script Headers error in openwebmail

Hi Everyone,

I have RedHat Linux 9 + Openwebmail 2.51 ,When i login i am getting Error as follows :

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

Please help me out...
Old 12-07-2007, 09:22 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
Is the script executable by the user that your web server us running as? What do you get when you run ls -l /path/to/ ?
Old 12-07-2007, 10:11 PM   #3
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
I saw a similar error today when I was compiling a new version of backuppc. The first line of the script should look like a comment, but actually call the interpreter. For example, I got that error because a file, started with #!/bin/perl, but on my system perl is found in /usr/bin/perl, so I had to modify the line to be #!/usr/bin/perl.

As Gilead pointed out, check the permissions on the script, and also check the top line, and see if where the script is calling perl is correct or not. I'm thinking it isn't.

Old 12-29-2007, 02:45 AM   #4
LQ Newbie
Registered: Dec 2007
Location: peking
Distribution: linux9.0
Posts: 3

Rep: Reputation: 0
once .i got the same question,at last i find i didn't install perl-suidperl package,i download one ,it works!
Old 07-04-2012, 05:35 AM   #5
LQ Newbie
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Smile reinstall

reinstalling suidperl and openwebmail worked for me


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
500 Internal Server Error/Premature end of script headers baruah Linux - Software 1 04-01-2006 06:10 PM
Premature end of script headers (openwebmail ver 2.51) duke_snyder Linux - Software 1 02-10-2006 05:03 PM
Premature end of script headers webhead Red Hat 5 09-22-2004 02:56 AM
Perl/CGI Problem "Premature Premature end of script headers:" newuser455 Linux - Software 2 07-18-2004 12:47 PM
Premature End of Script Headers (Error 500) bsdb3 Red Hat 5 05-06-2004 12:55 PM

All times are GMT -5. The time now is 10:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration