Plesk

WordPress website on Plesk server is inaccessible: Error 500 PHP Fatal error: Unknown: Failed opening required ‘/home/johndoe/public_html/example.com/wordfence-waf.php’

Symptoms

Cause

The file wordfence-waf.php referred by user.ini of WordPress website is missing. As a result, WordPress engine fails to run website.

Resolution

  1. Connect to the server using SSH.
  2. Open the file /var/www/vhosts/example.com/httpdocs/.user.ini with command line text editor and comment out the line containing reference to wordfence-waf.php:

    Before edit:

    auto_prepend_file = '/home2/example/public_html/example.com/wordfence-waf.php'

    After edit:

    ;auto_prepend_file = '/home2/example/public_html/example.com/wordfence-waf.php'

  3. Save the file and close text editor.
Exit mobile version