Article ID: 120785, created on Mar 29, 2014, last review on Jul 1, 2016

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


  1. A secondary PHP is not working while switching the PHP mode to FastCGI:

    # tailf /var/www/vhosts/domain.tld/logs/error_log
    (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    Premature end of script headers: index.php


    [fcgid:warn] [pid 1175:tid 140298957072128] (104)Connection reset by peer: [client xx.xx.xx.xx:50320] mod_fcgid: error reading data from FastCGI server
    [core:error] [pid 1175:tid 140298957072128] [client xx.xx.xx.xx:50320] End of script output before headers: index.php
    [fcgid:warn] [pid 1174:tid 140298982250240] (104)Connection reset by peer: [client xx.xx.xx.xx:50324] mod_fcgid: error reading data from FastCG
  2. Apache logs show a memory error:

    # less /etc/httpd/logs/error_log
    Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.7 mod_python/3.3.1 Python/2.6.6 mod_ssl/2.2.15 OpenSSL/1.0.0-fips SVN/1.6.11 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations 
    [Errno 12] Cannot allocate memory 
  3. Syslog shows suhosin alerts

    # less /var/log/syslog
    hosting suhosin[32242]: ALERT - zend_mm_head corrupted at 0x2e02420 (attacker '', file '/var/www/vhosts/')
  4. The Suexec log shows an error:

    # tailf /var/log/httpd/suexec_log
    uid: (10033/ftpuser) gid: (504/504) cmd: cgi_wrapper
    unknown error in docroot check (10033)


  1. PHP is not compiled with FastCGI.

  2. There is not enough memory on the server.

  3. The domain php.ini is customized, contains misprinted errors, or an invalid configuration.

  4. Permissions on the /etc/passwd file are incorrect.

  5. A problem with particular php module compatibility.


  1. Make sure PHP is compiled with FastCGI. You can use the below command to check whether the fastcgi module is enabled or not.

    # /usr/local/psa/admin/bin/php_handlers_control --list
    id:  display name:  version:    type:                                     cgi-bin:                php.ini:
    fastcgi-5.2.17         5.2.17    5.2.17      cgi  /usr/local/php5.2.17/bin/php-cgi  /usr/local/lib/php.ini

    Check the PHP version:

    # /usr/local/php5.2.17-cgi/bin/php-cgi -v
    PHP 5.2.17 (cgi) (built: Mar 27 2014 20:28:44)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

    As it shown, 5.2.17 (cgi) is used. This means that PHP works in CGI mode only. PHP that works in CGI and FastCGI modes looks as below:

    # php-cgi -v
    PHP 5.3.3 (cgi-fcgi) (built: Jul 12 2013 20:34:01)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
        with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

    If PHP is not compiled with FastCGI mode, please recompile the custom php with option --enable-fastcgi.

  2. Make sure there is enough memory on the server using the command:

    # free -m

    If the server is a virtual container, you can check resource limits with the command:

    # cat /proc/user_beancounters
  3. The domain php.ini may be customized manually or contain an error. For example: megabytes set in php.ini as 128MB instead of 128M.

    Back up the original domain php.ini and reconfigure a domain:

     # mv  /var/www/vhosts/system/domain.tld/etc/php.ini /var/www/vhosts/system/domain.tld/etc/php.ini_orig
     # /usr/local/psa/admin/bin/httpdmng --reconfigure-vhost --vhost-name=domain.tld

    For Plesk 11.5 and higher, use the following command:

     # /usr/local/psa/admin/bin/httpdmng --reconfigure-domain --domain-name=domain.tld
  4. Make sure that permissions for the /etc/passwd file looks as follow:

    # ls -la /etc/passwd
    -rw-r--r-- 1 root root 7643 Mar  3 12:54 /etc/passwd

Search Words

Webseite ist nicht verfügbar


Wrong value of php_handler_type, it can take only FastCGI application

command cgi_wrapper not in docroot

fastcgi does not work

fastcgi parallels

error reading data from FastCGI server

Websites not loading after the Plesk upgrade


Timeout waiting for output from CGI script /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

Internal server error on large request

Seiten laden nicht

error 500

php 2 version


Internal Server Error

mod_fcgid: read data timeout in 45 seconds

Webhosting account does not handle PHP with FastCGI handler.

cgi_wrapper cgi_wrapper


500 Internal Server Error



Not able to create database

unknown error in docroot check

internal error after upgrade php

versioni php multiple


End of script output before headers: index.php

fork() not supported by this platform

Websites doesn't load

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


seiten nicht erreichbar


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

Email subscription for changes to this article
Save as PDF