How to Update PHP version 7.4 in Hostgator

WordPress notified me that I should update to the latest PHP version 7.4 on Hostgator so that my website will run faster and be more secure. Most of the instructions on the web and within Hostgator support are outdated. So, I figured things out on my own and did this…

This is the message from WordPress telling me to update my PHP today.

This is the slightly outdated instruction from Hostgator knowledge base… it should be updated now as you read this.

At first, it failed when I updated the PHP… I got the “Missing MySQL Extension” error.

Then I installed back the old PHP version and did an extra step.

Yes, I previously used the PHP Selector to change the PHP version, so there is a handler in the .htaccess file that needs to be removed.

  1. Log in to my Hostgator account.
  2. Go to CPanel — Files — File Manager.
  3. Open and edit for the “.htaccess” file.
  4. Delete the statement shown above and save.

Next, go back to Hostgator Control Panel and select MultiPHP Manager under Software.

Inside MultiPHP Manager, Select all domains, select latest PHP, and hit Apply.

Done! My website is running on PHP 7.4 now.

Is it faster? I don’t think so. Still had to wait 3 seconds to load a page.

Next, I made the site load dramatically faster by doing this… https://adrianvideoimage.com/wordpress-website-loads-faster-after-deactivating-jetpack-features/

~ Adrian’s Journal

Loading

Author: AdrianLee
Adrian Lee is a seasoned content creator based in Singapore, known for his expertise in smartphone videography, video editing, and live streaming. With a passion for sharing knowledge, Adrian runs VideoLane.com and AdrianVideoImage.com, where he offers insights into his personal experiences alongside practical tips for aspiring creators. With a growing community across various platforms, Adrian aims to empower others through creative storytelling and innovative content techniques.

1 thought on “How to Update PHP version 7.4 in Hostgator

  1. I am searching on google how to update the PHP version on Hostgator and I find your post. And after reading your content, hopefully, now we can update. Thank you!

Leave a Comment or Ask a Question

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