Article ID: 124150, created on Jan 7, 2015, last review on Apr 16, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


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


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


The issue caused by incorrect permission of the CGI wrapper.


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

2. 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

3. Set correct permission for cgi_wrapper:

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

4. Restart httpd service:

    # /etc/init.d/httpd restart

Search Words

error reading data from FastCGI server


Premature end of script headers


internal server error plesk


(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server

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

Email subscription for changes to this article
Save as PDF