- Plesk 12.5 for Linux
- Plesk Onyx for Linux
- Plesk 11.x for Linux
- Plesk 12.0 for Linux
Webmail showing "500 internal server error".
In Apache logs, I can see:
tail -f /var/log/httpd/error_log
[Thu Dec 05 17:21:00 2013] [warn] [client 18.104.22.168] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Thu Dec 05 17:21:00 2013] [error] [client 22.214.171.124] Premature end of script headers: index.php
in the suexec log:
tail -f /var/log/httpd/suexec_log
[2013-12-05 15:36:35]: uid: (501/horde_sysuser) gid: (504/504) cmd: cgi_wrapper
[2013-12-05 15:36:35]: command cgi_wrapper not in docroot (501)
CGI wrapper that comes with CentOS' apache RPM is configured to allow only CGI scripts in
. Suexec only executes programs within an apache
. If the script is not in
, suexec will trigger suexec's restrictions on executable file locations. Thus websites and webmail start showing internal server error if there are any symlinks for the document root.
Ensure that the '
' is not a symlink to any other directory
# ls -ld /var/www
lrwxrwxrwx 1 root root 14 Oct 24 11:14 www -> /mnt/data/www/
You need to remove the symlink and change the vhosts location by using the
utility from the following article: