webmail or cpanel shows internal server error

I got internal server error while accessing the below links:

domain.com/webmail

or

domain.com/cpanel

But the links are working fine while using the corresponding ports 2095 and 2082.

1. Check the apache error log:

/usr/local/apache/logs/error_log

In my case,

[Thu Dec 15 13:17:20.428541 2013] [cgi:error] [pid 15708] [client IP:21587] AH01215: suexec policy violation: see suexec log for more details
[Thu Dec 15 13:17:20.428591 2013] [cgi:error] [pid 15708] [clientIP:21587] End of script output before headers: redirect.cgi

The apache error log referred to suexec restrictions causing the 500 error. I checked the suexec log and found the following error.

/usr/local/apache/logs/suexec_log
[2013-12-15 13:18:24]: invalid target user id: (710)
[2013-12-15 13:18:26]: invalid target user id: (710)

I checked /etc/password and the user does exist.

grep 710 /etc/passwd
sasdfadfox:x:709:710::/home/sasdfadfox:/usr/local/cpanel/bin/noshell

Seeing that the problem was not with the user and more likely a configuration issue with the httpd.conf

Rebuild the apache configuration using the below script :

/scripts/rebuildhttpdconf

Enjoy !!! 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s