最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Site Health says I'm running an older version of PHP even after I upgraded to 7.4.4

programmeradmin3浏览0评论

There is an error that displays in "Site Health" that says that I'm running an older version of PHP. After upgrading to the latest, I'm still getting the error. Is there something I missed?

There is an error that displays in "Site Health" that says that I'm running an older version of PHP. After upgrading to the latest, I'm still getting the error. Is there something I missed?

Share Improve this question asked Apr 10, 2020 at 3:22 DesiDesi 1,2494 gold badges37 silver badges54 bronze badges 4
  • What OS are you running? Linux? Windows? Mac? – 西門 正 Code Guy - JingCodeGuy Commented Apr 10, 2020 at 4:02
  • 1 I run 3 versions of php and it is important for apache or nginx to include proper handlers for specific versions. Did you restart your http server after upgrade? Not knowing your server environment makes it more difficult to figure out what is going on. – Admiral Noisy Bottom Commented Apr 10, 2020 at 5:45
  • @simongcc Windows – Desi Commented Apr 10, 2020 at 23:25
  • @AdmiralNoisyBottom Sorry for the lack of details. Basically, I host the WP site on DigitalOcean on Ubuntu 18.0.4. I restarted Apache after upgrading the PHP version. – Desi Commented Apr 10, 2020 at 23:29
Add a comment  | 

1 Answer 1

Reset to default 1

There are 2 things you could try to confirm

  • create a php file with phpinfo() to see what version it is running
  • then go to httpd.conf to locate LoadModule php7_module ... to find out which file it is calling

Sometimes LoadModule is put inside httpd.config, sometimes maybe in include file instead but you could find the information inside this config file. Because it depends what package are you using. It might be XAMPP, LAMP or standalone installation. But the concept and configuration are almost the same.

If you upgrade, it is most likely that you haven't updated the config file.

发布评论

评论列表(0)

  1. 暂无评论