• Hi,
    I’ve updated PHP on my hosts cpanel to 7.3 and have confirmed this myself by creating and running a phpinfo.php page from my site

    WordPress admin page complains that i’m running PHP 5.6.
    I’ve checked .htaccess and added a some things to no avail:

    AddHandler application/x-httpd-ea-php73 .php

    and separately tried this:

    AddHandler php-cgi .php
    Action php-cgi /cgi-bin/php-cgi

    and even this:

    SetEnv PHP_VER 7_3

    I can’t find a php.ini file.

    Would really appreciate any help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please contact your host.

    Thread Starter daverumney

    (@daverumney)

    I already spoke to my host and they confirmed that it was running 7.3.
    To satisfy myself I created a phpinfo.php file:
    <?
    phpinfo();
    ?>
    and ran it which confirmed the host site is running PHP 7.3.3 for my website – which makes me think the problem is somewhere in WP

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    WP does not pick the PHP version. It’s set somewhere in your hosting configuration. If WP is seeing something other than 7.3.3, it’s in your hosting.

    Thread Starter daverumney

    (@daverumney)

    Hi,
    phpinfo is going direct to the host to get the php version. WP isn’t involved in that process as far as I can tell.
    Also, if I change the PHP version on my host (for my domain) to 7.2 and reload phpinfo.php again, it reports it correctly as 7.2.
    However WordPress continues to report that I’m on an outdated PHP version 5.6
    Anyone know what WP does to ascertain the PHP version or if there’s anything I can check in WP?
    Thanks

    • This reply was modified 4 years, 4 months ago by daverumney.
    • This reply was modified 4 years, 4 months ago by daverumney.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The PHP version is supplied by the hosting environment, not selected in any way by WP. It can be set in the PHP-CGI/PHP-FPM configuration, in .htaccess, or in the cpanel environemnt. You really need to push a bit harder on the host’s support on this.

    Thread Starter daverumney

    (@daverumney)

    Thanks – I’ll take a look at that.
    My host isn’t dealing with many WP hosters – I don’t think they have much knowledge of it

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WordPress not recognising PHP update’ is closed to new replies.