Article ID: 123681, created on Nov 26, 2014, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.5 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] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Thu Dec 05 17:21:00 2013] [error] [client] 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 /var/www. Suexec only executes programs within an apache <Document Root>. If the script is not in Document Root, 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 '/var/www' 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:


Search Words

500 Internal Server Error


internal server error

Tous les sites PHP ne fonctionnent pas en mode FastCGI

command cgi_wrapper not in docroot

error 500



a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF