WordPress website crashes with the error 500 - internal server error.
The following entries are registered in the
[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
PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0
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:
Find current PHP handler at Customer Control Panel > Websites > Hosting Settings, drop-down PHP version
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.
Say the PHP version in the panel is 5.6 and the path to the
/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.
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.
- 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.