Posted: . At: 10:15 AM. This was 5 years ago. Post ID: 13049
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to use the most recent PHP version on Hostgator servers.

This is how easy it is to change the PHP version to the latest on Hostgator servers. Open Cpanel and look for the PHP Selector option. Open this and then you will be presented with the screen below. Change the PHP version to PHP Edge and click Update. This will set the PHP version to the latest installed server version.

Updating the PHP version in Cpanel.
Updating the PHP version in Cpanel.

This was required to fix WordPress, as it was complaining about a PHP Update that was required.

You may also put this into your .htaccess file in your web root to also set the proper PHP version for proper functioning of your website. But the solution above did this for me anyway.

# Use PHPedge as default
AddHandler application/x-httpd-php-edge .php
 
<IfModule mod_suphp.c>
    suPHP_ConfigPath /opt/phpedge/lib
</IfModule>

This is how easy this is to fix. Hopefully this will help out someone that is having the same problem.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.