WordPress reading old PHP version, server running current version
-
After several days of trying to figure out why my site health was showing my server as PHP 7.4.33, yet my hosting server was running 8.3.6, and hours on chat with my host Bluehost (they were useless in helping), I finally figured out the issue with the help of ChatGPT.
My regular htaccess file in my public.html was set correctly to use PHP 8.3. My host was insistent that my server was using 8.3, which it actually was. WordPress was showing that I’m using 7.4.33, no matter what updates we did on the server side. 3 different people could not figure out what I was trying to show them.
I found this other thread here: https://ww.wp.xz.cn/support/topic/wordpress-thinks-my-php-is-older-version/page/2/ and also https://ww.wp.xz.cn/support/topic/wordpress-says-i-need-to-update-my-php-but-its-at-8-1/
I wish I could open them and post this reply, but I can’t. He figured out it was a plugin issue, but I just found this out:
There’s an additional htaccess file under public.html > wp-admin
This was overriding the other htaccess file one level below. That one I just found was still pointed at PHP 7, so I updated the file to 8.3 and it’s all working correctly on my site now. No idea why it didn’t update itself, but maybe WordPress needs to do something about that? Like check the server config and update WordPress when it does an update to match the PHP version? Maybe a different plugin is somehow causing wordpress to use an old version of PHP?
Hope this helps others in the future.
The topic ‘WordPress reading old PHP version, server running current version’ is closed to new replies.