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

server - WordPress PHP versioninfo not being picked from cPanel PHP Version values

programmeradmin1浏览0评论

Within my WordPress dashboard, I am receiving the error that my PHP version needs to be updated to v7.4 as it currently shows v5.6.40.

The thing is, I have actually gone into the cPanel for this website and updated the PHP version to 7.4, as well as some other option values.

From what I can see, it doesn't seem to be picking up any of these changes at all, from WordPress as when looking at Tools > Site Health > Info > Server, none of the values line up with cPanel PHP version changes.

I am running WordPress 5.8.3 but would really appreciate your help as to where WordPress is picking up this info in Site Health as it's certainly not retrieving the info from cPanel.

Is there anyway of forcing WordPress to use v7.4 within .htaccess file?

FYI, I also have the following line at the bottom of my .htaccess file:

AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml

Do I need this line and could this be where this 5.6.40 version is being picked up from?

Within my WordPress dashboard, I am receiving the error that my PHP version needs to be updated to v7.4 as it currently shows v5.6.40.

The thing is, I have actually gone into the cPanel for this website and updated the PHP version to 7.4, as well as some other option values.

From what I can see, it doesn't seem to be picking up any of these changes at all, from WordPress as when looking at Tools > Site Health > Info > Server, none of the values line up with cPanel PHP version changes.

I am running WordPress 5.8.3 but would really appreciate your help as to where WordPress is picking up this info in Site Health as it's certainly not retrieving the info from cPanel.

Is there anyway of forcing WordPress to use v7.4 within .htaccess file?

FYI, I also have the following line at the bottom of my .htaccess file:

AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml

Do I need this line and could this be where this 5.6.40 version is being picked up from?

Share Improve this question edited Jan 23, 2022 at 10:26 Max Yudin 6,3782 gold badges26 silver badges36 bronze badges asked Jan 22, 2022 at 1:35 tonyfattonyfat 1011 bronze badge 3
  • 2 This is definitely the problem of the environment. WordPress uses what server offers. – Max Yudin Commented Jan 22, 2022 at 9:03
  • 1 You'd need to check the mod_php version in Apache (or the fastcgi configuration if you're using that). In general it will be configured for the server, not for each individual site on the server, so you'll need the central Apache configuration not just .htaccess. – Rup Commented Jan 23, 2022 at 12:05
  • Seems like commenting out the following line: AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml within the .htaccess then read the server details, so all good. – tonyfat Commented Jan 24, 2022 at 10:26
Add a comment  | 

1 Answer 1

Reset to default 0

Seems like commenting out the following line:

AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml

within the .htaccess then read the server details, so all good.

发布评论

评论列表(0)

  1. 暂无评论