Fatal error Failed opening required wordfence waf.php  - ❌ PHP Fatal error:  Unknown: Failed opening required wordfence-waf.php

❌ PHP Fatal error: Unknown: Failed opening required wordfence-waf.php

After migrating a WordPress website ot another cPanel account, the website displayed 500 error, and the following was recorded inside the error_log file: [17-Aug-2022 12:46:18 Europe/Belgrade] PHP Fatal error: Unknown: Failed opening required ‘/home/XXXXX/XXXXX.com/wordfence-waf.php’ (include_path=’.:/opt/alt/php74/usr/share/pear’) in Unknown on line 0 WordFence adds rules to .htaccess file to include the wordfence-waf.php file by full path: php_value … Read full article →

wpcli custom php version - Download WP-CLI & set custom PHP Version

Download WP-CLI & set custom PHP Version

Recently I was migrating a website from GoDaddy shared hosting using WP-CLI and noticed the PHP version in cli was outdated. Here is how to install WP-CLI and set custom PHP version for the cli. Setup WP-CLI To download WP cli: To run it use php wp-cli.phar To make it easier to call We’ll rename … Read full article →