HELP! Wordfence keeps changing PHP version in .htaccess file
-
A few weeks ago, I got a PHP Update recommendation on a site that PHP 7.4.33 was no longer receiving updates and and needs updated. I updated it to 8.2 in the host. The notice went away. A week later, it was back. I asked our host’s tech support, and they sent me a screenshot that Wordfence was overwriting the PHP version in the .htaccess file. Specifically:
# Wordfence WAF
#<files "php.ini">
#<IfModule mod_authz_core.c>
# Require all denied
#</IfModule>
#<IfModule !mod_authz_core.c>
# Order deny,allow
#Deny from all
#</IfModule>
#</files>They removed the code and updated the PHP back to 8.2. Both times, Wordfence showed this in the PHP Environment Settings:
PHP version>+ PHP 7.0.0 (WordPress Requirements) Version: ✔ 8.2.28
They said if it happened again, I would need to contact Wordfence. It has happened again.
Why is this happening and how do I resolve this?
Thanks!
You must be logged in to reply to this topic.