Websites are not available: cannot get docroot information

Created:

2016-11-16 12:55:21 UTC

Modified:

2017-08-08 13:08:30 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Websites are not available: cannot get docroot information

Applicable to:

  • Plesk for Linux

Symptoms

  • Unable to access websites with the following error in a web browser:

    500 Service Unavailable
  • In /var/www/vhosts/system/example.com/logs/error_log the following messages can be found:

    [Fri Mar 11 22:25:10.465057 2016] [fcgid:warn] [pid 20557] (104)Connection reset by peer: [client xxx.xxx.xxx.xxx:59010] mod_fcgid: error reading data from FastCGI server
    [Fri Mar 11 22:25:10.465147 2016] [core:error] [pid 20557] [client xxx.xxx.xxx.xxx:59010] End of script output before headers: index.php
  • In /var/log/httpd/suexec_log the following messages can be found:

    [2016-03-11 22:22:14]: uid: (10063/user) gid: (1004/1004) cmd: cgi_wrapper
    [2016-03-11 22:22:14]: cannot get docroot information (10063)
  • The following error can be found in /var/log/plesk/panel.log if trying open domain directory using Plesk File Manager:

    Unable to find the directory /var/www/vhosts/example.com: filemng failed: filemng: opendir failed: Permission denied

Cause

Incorrect permissions are set to /var/www/vhosts/ directory.

Resolution

  1. Connect to the server using SSH.
  2. Set correct permissions to /var/www/vhosts/ directory:

    # chmod 755 /var/www/vhosts/
    # chown root:root /var/www/vhosts/

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