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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
06-07-2005, 03:36 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Rep:
|
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 
|
|
|
|
06-07-2005, 04:18 AM
|
#2
|
|
Member
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183
Rep:
|
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.
|
|
|
|
06-07-2005, 04:31 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Original Poster
Rep:
|
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.
|
|
|
|
06-07-2005, 05:58 AM
|
#5
|
|
Member
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183
Rep:
|
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.
|
|
|
|
06-09-2005, 01:41 AM
|
#6
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Original Poster
Rep:
|
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?
|
|
|
|
06-09-2005, 02:09 AM
|
#7
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Original Poster
Rep:
|
How do I check that the cgi-bin directory is executable? the location is correct according to the openwebmail config...
|
|
|
|
06-09-2005, 08:42 AM
|
#8
|
|
Member
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183
Rep:
|
Check the permissions of directory rwx permissions to change correct permissions try
chmod 755 cgibin
|
|
|
|
06-09-2005, 09:23 AM
|
#9
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Original Poster
Rep:
|
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?
|
|
|
|
06-09-2005, 11:49 PM
|
#10
|
|
Member
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183
Rep:
|
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.
|
|
|
|
06-10-2005, 02:22 AM
|
#11
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Original Poster
Rep:
|
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?
|
|
|
|
06-10-2005, 03:26 AM
|
#12
|
|
Member
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183
Rep:
|
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.
|
|
|
|
06-10-2005, 04:07 AM
|
#13
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Original Poster
Rep:
|
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.
|
|
|
|
06-10-2005, 04:37 AM
|
#14
|
|
Member
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183
Rep:
|
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.
|
|
|
|
06-10-2005, 05:43 AM
|
#15
|
|
LQ Newbie
Registered: Jun 2005
Distribution: Suse 9.1, Suse 10.0, FC3, Knoppix, DSL, Puppy Linux, Ubuntu, Kubuntu
Posts: 28
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|