Symptoms
-
A WordPress-based website is not accessible with the following error in a browser:
500 external server error
-
One of the following error messages might appear in Plesk > Domains > example.com > Logs:
mod_fcgid: stderr: Error reading Wordfence Firewall config data, configuration file could be corrupted or inaccessible. Path: /var/www/vhosts/example.com/httpdocs/wp-content/wflogs/config.php
mod_fcgid: stderr: PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/sermon-manager-for-wordpress/sermons.php on line 53
mod_fcgid: stderr: PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/vhosts/example.com/httpdocs/wp-content/themes/MissionWP22/option-tree/ot-loader.php on line 389
PHP Fatal error: Maximum execution time of 60 seconds exceeded in F:Inetpubvhostsexample.comhttpdocswp-includesfunctions.php on line 1897
Cause
An incompatible PHP version is configured in the domain.
Resolution
-
Go to Domains > example.com > PHP Settings and change PHP according to the WordPress and Plugins requirements.
- In case this issue persists, disable the WordPress plugin and contact WordPress Plugin developers to get support.
Additional Information
For the best experience, WordPress recommends PHP 7.4 or greater. For reference see WordPress requirements.
How to install/remove additional PHP versions provided by Plesk