Plesk

A WordPress instance on Plesk fails with error 500: PHP Fatal error: Failed opening required ‘/var/www/vhosts/example.com/public_html/wordfence-waf.php’

Symptoms

Cause

WordFence plugin was removed from the WordPress instance but some leftovers of this still exist.

Resolution

Command Line solution:

  1. Connect to the server via SSH.

  2. Run the following command while replacing example.com by the WordPress domain name:

    # sed -i -e '/wordpress-waf.php/s/auto_prepend_file/;auto_prepend_file/' /var/www/vhosts/example.com/public_html/.user.ini

Exit mobile version