Webmail or websites shows Internal Server error

Refers to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:23:56 UTC

Modified:

2016-12-21 20:37:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Webmail or websites shows Internal Server error

Symptoms

  • Unable to open webmail or :

    Internal Server Error

or

  • CGI scripts don't work on a domain. Websites which have FastCGI PHP handler not working, with PHP-FPM it works fine

  • Log file shows '/var/log/httpd/suexec_log' the following error:

    uid: (10021/horde_sysuser) gid: (510/510) cmd: cgi_wrapper
    target uid/gid (10021/510 or 504) mismatch with directory (0/503) or program (0/0)
    uid: (2523/horde_sysuser) gid: (2521/2521) cmd: cgi_wrapper
    directory is writable by others: (/var/www/cgi-bin/cgi_wrapper)
  • the following errors in /var/log/httpd/error_log :

    # tail -fn0 /var/log/httpd/error_log
    [Mon Nov 21 09:25:25 2016] [error] [client 11.21.31.41] Directory index forbidden by Options directive: /var/www/html/, referer: http://10.20.30.40:8880/admin/domain/list?context=domains

Cause

Incorrect permissions for '/var/www/cgi-bin/cgi_wrapper' directory.

Resolution

Set correct permissions as follows:

# chown -R root:root /var/www/cgi-bin/cgi_wrapper
# chmod -R 755 /var/www/cgi-bin/cgi_wrapper

Note: Directory location can differ, take a look on path in the error.

Have more questions? Submit a request
Please sign in to leave a comment.