• Resolved kspence2627

    (@kspence2627)


    I use HostGator for hosting, and I followed their instructions via your list to update the PHP, but I’m still getting this:

    An updated version of WordPress is available.

    You cannot update because WordPress 5.2 requires PHP version 5.6.20 or higher. You are running version 5.4.45.

    While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.

    All of my other sites are working and have updated and I use the same exact hosting (for reference you can look at https://kristinnspencer.com or https://literarysymmetry.com)

    How can I really resolve this? Thanks!

    The page I need help with: [log in to see the link]

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

    (@sterndata)

    Volunteer Forum Moderator

    Check your .htaccess file as it may specify a PHP handler, pointing to an older version. Contact HostGator support if you don’t find it.

    i had this issue as well so i did a bit of digging! we have to change the php version in our cpanel.

    scroll down to “software”
    look for “php selector”

    this brings you to a page with a dropdown. mine was set to default php 5.4, i switched this to 5.6 stable.

    this will make a new htaccess file on your top level.

    this didn’t solve the issue for me, because another htaccess file was hiding in my public_html folder. that one i just copied the info from the top level htaccess file and pasted it over the old info. i was able to update normally after that.

    i’m not great at explaining this stuff so i hope this wasn’t confusing!

    Thread Starter kspence2627

    (@kspence2627)

    Thank you Nimil, that helped a lot. When I went into the HostGator cPanel, “software,” “php selector” and clicked on “public_html” folder it had my individual domains inside and I was able to select it and change the php version from sincerelyadorned.com. I was able to update WordPress after that. You are awesome! Thank you for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP update not recognized.’ is closed to new replies.