LinuxQuestions.org
Help answer threads with 0 replies.
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 06-07-2005, 03:36 AM   #1
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Rep: Reputation: 15
Unhappy Users can't log into Webmail - Error 500


Hi all

I am a complete newbie but am frantically learning as fast as possible... I have to try sort out an issue with a mail server running Suse 9.1 - using Sendmail... when logging in to the Webmail service, I get the login screen, and I can enter a user and P/word but then I get the following error:

Server Error!
The server encountered an internal error and was unable to complete your request

Error message:
Premature end of script headers: openwebmail.pl

Error 500


Please can anybody help, I've got a bunch of angry users calling for blood
 
Old 06-07-2005, 04:18 AM   #2
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
which webmail interface you r using???is it neomail or openwebmail, or something else, did u check your error_log and suexec_log files.

Last edited by hardcorelinux; 06-07-2005 at 04:32 AM.
 
Old 06-07-2005, 04:31 AM   #3
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
I'm not sure... the server is running sendmail, the webmail login screen has an "@pen webmail" logo... I'm still very new at all this.
 
Old 06-07-2005, 04:34 AM   #4
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Ya it is openwebmail,check this thread may be it will help u, http://forum.ev1servers.net/showthre...1&page=3&pp=25
 
Old 06-07-2005, 05:58 AM   #5
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Did u check that, check the following by making sure that all the openwebmail-*.pl files had the correct permissions, and the path the the 'usidperl' file was correct, and the permissions on usidperl were correct (4555). plus, you have to make sure the location of your cgi-bin dir is executable by apache .

Or try to reinstall perl-suidperl- package.

Last edited by hardcorelinux; 06-07-2005 at 06:17 AM.
 
Old 06-09-2005, 01:41 AM   #6
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
I've had a look and it looks like a permissions problem. when I run a search on all openwebmail files, the permissions set are read-write - and I haven't changed any permissions that I know of. Would a Yast Online Update have changed any of these?
 
Old 06-09-2005, 02:09 AM   #7
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
How do I check that the cgi-bin directory is executable? the location is correct according to the openwebmail config...
 
Old 06-09-2005, 08:42 AM   #8
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Check the permissions of directory rwx permissions to change correct permissions try

chmod 755 cgibin
 
Old 06-09-2005, 09:23 AM   #9
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
Ok... I've run the chmod command for cgi-bin directory but still no success... if I've done a YOU, and not updated everything - could that be the cause? if not would a good old reboot sort the issue?
 
Old 06-09-2005, 11:49 PM   #10
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Try http://openwebmail.org/openwebmail/doc/faq.txt may be it will help you.And one more thing check perl is running or not in your server,try tp run some perl script from your command line.

In that faq , they are saying,


If your Open WebMail doesn't work, please post your problem on
openwebmail forum http://sourceforge.net/forum/forum.php?forum_id=108433
with the following information

OS
Perl Version
your openwebmail.conf
the ls -l of the perl executable used in your openwebmail.pl
the ls -l of your cgi-bin/openwebmail and cgi-bin/openwebmail/etc
the ls -la of the ~user/mail/
the error message in your browser
the error message in your http server error log
the error message in openwebmail.log
you browser name & version
do you enable speedycgi?
do you set any proxy server in browser?

If your Open WebMail works but it shows strange output for some messages,
please forward the message as an attachment to us
(openwebmail.AT.turtle.ee.ncku.edu.tw)
ps: clicking the 'forward as attachment' icon in message reading menu

Last edited by hardcorelinux; 06-09-2005 at 11:53 PM.
 
Old 06-10-2005, 02:22 AM   #11
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for all your help... I've had a look and posted but the FAQs were not much help... would updating perl get me any closer to a solution or could that be the cause of it all? How do I run perl script from the command line?
 
Old 06-10-2005, 03:26 AM   #12
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
edit perl or cgi script file, at top of file add....

#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);



then errors should be redirected to browser rather then getting a 500 error.

ALSO, check if the script runs on the command line,


perl -w ./myscript.cgi

and see if it gives you errors.
 
Old 06-10-2005, 04:07 AM   #13
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
I've had a look at the openwebmail.pl file and on line 1 it says:

#1/usr/bin/suidperl -T

ALSO, if I type:

perl -w ./openwebmail.pl

I get:

Args must match #! line at ./openwebmail.pl line 1

I get the same error after I've changed the line to your suggestion... and I still get error 500 at the login screen.
 
Old 06-10-2005, 04:37 AM   #14
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
chmod 0755 /usr/bin/suidperl

and try again

http://<your ip>/cgi-bin/openwebmail/openwebmail.pl ( replace ur ip not with hostname)

check this is working or not.

If it is working try to run noraml case and check your SUEXEC log and apache error log , paste your error here also.
 
Old 06-10-2005, 05:43 AM   #15
Twistedlizzard
LQ Newbie
 
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
Here's what I've done so far:

edited the openwebmail.pl file - changed #!/usr/bin/suidperl -T to:

#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);

--
ran the command: perl -w ./openwebmail.pl
and got:
Args must match #! line at ./openwebmail.pl line 1

tried the web address:
http://<my ip>/cgi-bin/openwebmail/openwebmail.pl

returned with error 500 again.
 
  


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
frontpage 500 error I_AM Linux - General 1 07-26-2005 09:59 AM
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 02:23 AM
.htaccess -> Error 500 IlyaZ Linux - Networking 4 06-20-2005 03:43 PM
Email Server for 500-1000 users Gregi76 Linux - Networking 5 01-07-2005 09:22 AM
webmail error tej Linux - Software 2 08-27-2004 05:49 AM


All times are GMT -5. The time now is 01:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration