LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-07-2007, 12:30 AM   #1
silverstag
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: openwebmail-main.pl
If you think this is a server error, please contact the webmaster
Error 500



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

Rep: Reputation: 168Reputation: 168
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/openwebmail-main.pl ?
 
Old 12-07-2007, 09:11 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
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, configure.pl 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.

Peace,
JimBass
 
Old 12-29-2007, 01:45 AM   #4
wangschang
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, 04:35 AM   #5
fireeee
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Smile reinstall

reinstalling suidperl and openwebmail worked for me
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:03 PM.

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