LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Users can't log into Webmail - Error 500 (https://www.linuxquestions.org/questions/linux-software-2/users-cant-log-into-webmail-error-500-a-331133/)

Twistedlizzard 06-07-2005 03:36 AM

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 :(

hardcorelinux 06-07-2005 04:18 AM

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

Twistedlizzard 06-07-2005 04:31 AM

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.

hardcorelinux 06-07-2005 04:34 AM

Ya it is openwebmail,check this thread may be it will help u, http://forum.ev1servers.net/showthre...1&page=3&pp=25

hardcorelinux 06-07-2005 05:58 AM

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.

Twistedlizzard 06-09-2005 01:41 AM

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?

Twistedlizzard 06-09-2005 02:09 AM

How do I check that the cgi-bin directory is executable? the location is correct according to the openwebmail config...

hardcorelinux 06-09-2005 08:42 AM

Check the permissions of directory rwx permissions to change correct permissions try

chmod 755 cgibin

Twistedlizzard 06-09-2005 09:23 AM

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?

hardcorelinux 06-09-2005 11:49 PM

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

Twistedlizzard 06-10-2005 02:22 AM

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?

hardcorelinux 06-10-2005 03:26 AM

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.

Twistedlizzard 06-10-2005 04:07 AM

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.

hardcorelinux 06-10-2005 04:37 AM

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.

Twistedlizzard 06-10-2005 05:43 AM

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.


All times are GMT -5. The time now is 06:15 PM.