- Plesk for Linux
- Domain shows 500 error sometimes.
- The following record occurs in
CONFIG_TEXT: "POST /wp-version.php HTTP/1.0" 500 304"
- At the same time the error as following can be found in
CONFIG_TEXT: AH01071: Got error 'PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0\nPHP message:
PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0\n
PHP message: PHP Fatal error: Unknown: Failed opening required '/var/www/vhosts/example.com/httpdocs/wordfence-waf.php' (include_path='.:/opt/plesk/php/7.0/share/pear') in Unknown on line 0\n'
The WordFence plugin is or was installed.
/var/www/vhosts/example.com/httpdocs/wordfence-waf.phpfile is missing on the server:
# stat /var/www/vhosts/example.com/httpdocs/wordfence-waf.php
Cannot stat: No such file or directory
Custom configuration of
- Connect to the server via SSH
- Comment out
auto_prepend_file = '/var/www/vhosts/example.com/httpdocs/wordfence-waf.php'line in the
/var/www/vhosts/example.com/httpdocs/user.inifile with the following command:
# sed -i '/auto_prepend_file/s/^/;/g' /var/www/vhosts/example.com/httpdocs/user.ini