error reading data from FastCGI server

Created:

2016-11-16 13:15:44 UTC

Modified:

2017-04-24 11:11:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

error reading data from FastCGI server

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

While accessing the .php file, customer is getting the below error in according Apache log for domain:

/var/www/vhosts/system/domain.tld/logs/access.log

[warn] [client 10.13.10.10] (104)Connection reset by peer: mod_fcgid: error reading data from  FastCGI server
[error] [client 10.13.10.10] Premature end of script headers: index.php

Cause

The issue caused by incorrect permission of the CGI wrapper.

Resolution

In order to set correct permissions for /usr/sbin/suexec utility and fix the issue, perform the following actions:1. Create backup of /usr/sbin/suexec utility:

    # cp -p /usr/sbin/suexec /usr/sbin/suexec.dist
  1. Copy Plesk suexec utility to /usr/bin directory and set correct permissions:
    # cp -f /usr/lib64/plesk-9.0/suexec/psa-suexec /usr/sbin/suexec
    # chown root:apache /usr/sbin/suexec
    # chmod 4510 /usr/sbin/suexec
    1. Set correct permission for cgi_wrapper :

      chmod 0755 /var/www/cgi-bin/cgi_wrapper

      1. Restart httpd service:

      /etc/init.d/httpd restart

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