Article ID: 128928, created on Jun 9, 2016, last review on Jun 9, 2016

  • Applies to:
  • Plesk Automation 11.5

Symptoms

WordPress website crashes with the error 500 - internal server error.

The following entries are registered in the /var/www/vhosts/example.com/logs/error_log file:

[Thu Jun 09 11:28:28 2016] [warn] [client x.x.x.x] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Thu Jun 09 11:28:28 2016] [error] [client x.x.x.x] Premature end of script headers: index.php

The following entries are registered in the server-wide Apache log file /var/log/httpd/error_log:

PHP Fatal error:  Directive 'register_globals' is no longer available in PHP in Unknown on line 0

Cause

The PHP directive register_globals is set to On in the php.ini used by the website. This feature has been deprecated as of PHP 5.3.0 and removed as of PHP 5.4.0:

http://php.net/manual/en/security.globals.php

Resolution

  1. Find current PHP handler at Customer Control Panel > Websites > Hosting Settings, drop-down PHP version

  2. Run on the management node the following command to find the path to the php.ini file of the actual handler:

    # /usr/local/psa/bin/php_handler --list -service-node 10.0.0.5
    

    where 10.0.0.5 is the IP address of the web server which the website is running on.

  3. Say the PHP version in the panel is 5.6 and the path to the php.ini is /usr/local/php-5.6/etc/php.ini. Comment out the directive register_globals in the file /usr/local/php-5.6/etc/php.ini, save the file.

  4. Go to Customer Control Panel > Websites, click the arrow below the domain name example.com to expand the pane with additional controls and click PHP settings, set register_globals to default, click OK.

  5. Go to Customer Control Panel > Websites > example.com > Hosting Settings and re-apply the settings by clicking OK on the bottom of the page - the php.ini specific to the domain will be regenerated without the directive register_globals.

Search Words

500 error

internal server error

wordpress does not work

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

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF