HostGator Web Hosting Help

What to do if your Site Does Not Work with Newer Versions of PHP

Please note: We will be updating to PHP version 8.0 in batches beginning in 2022. Keep an eye out for communications on when your account will be updated and what changes, if any, you will need to make. For more information on updating content for PHP compatibility, read our guide on What to do if your Site Does not Work with Newer Versions of PHP. To learn more about what is changing with PHP 8.0, please see PHP.net's release notes.

My sites don’t work with newer versions of PHP, what can I do?

Many popular website platforms use PHP for rendering their content. It’s common for these sites to have automatic update tools to ensure that they work with the latest version of PHP, however sometimes a theme or plugin for these services may prevent them from updating or may not work with a newer version of PHP.

If you are able to test and identify that your sites do not work with a newer version of PHP, you have a number of options.

  • Attempt to Update Your Website
    Many platforms, such as WordPress, can be updated to versions that are compatible with the most up to date versions of PHP. The first step may be as simple as attempting to update your website from the dashboard. Please remember to take a backup before making any changes so that the site can be restored to its previous state if it experiences any issues while upgrading.
  • Contact a Developer
    Either your web developer or another web developer may be able to assist you with updating your website to be compliant with a modern secure version of PHP. The Developer who originally built your site is likely to have the best chance of resolving the issue quickly and effectively.
  • Design a New Site
    Another valid option is to design a new site, using the opportunity to provide your visitors with a fresh experience that uses a modern version of PHP. HostGator offers a variety of tools to build a website from scratch that will work on your new service.

    See Getting Started with your New Account to learn more.

    Additionally, it is possible to get third party developers to re-build your site for you.
  • Migrate to a Platform that Allows End of Life PHP Versions

    PHP 7.0,7.2 are outside of their end of life and are not receiving security updates. Actions taken to continue to remain reliant on this service are not recommended by HostGator.

    We understand that it may be a challenge to update your site to be compliant with modern versions of PHP. If there is no way to update or rebuild your site to be compliant with your updated service it is possible to migrate your content to another service provider that has PHP 5.2 available.

    If you are unable to find a provider that explicitly offers this option, it is possible to get a VPS or dedicated server that will allow you to control the software environment on which you host your website.
For more information and frequently asked questions about this migration, please see the following articles regarding the migration:



Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Our updated 'Rock' user interface offers a fresh new look, along with several useful tools and helpful features. One such feature is the My Sites tab, where you can easily manage your websites.

How to change your PHP version in your hosting account
Knowledgebase Article 886,129 views tags: config php selection version

When you purchase a website transfer, you may need to upload and share a backup of their website with professional services. This article will explain how to share a backup using DropBox or Google Drive.

Related Help Content

A list of frequently asked questions about the upgrade to the newest version of Weebly
Knowledgebase Article 122,764 views tags: Weebly builder drag drop site upgrade

You have invested a significant amount of time creating and perfecting your website, and you're ready to publish it for the world to see! Are you really though? Use this checklist to ensure your site is ready for publication.
Knowledgebase Article 70,351 views tags: checklist guide list practice publication publish site website

In the newer versions of PHP, they have included a new directive to control and handle remote includes. We disable this option, by default, which may affect some of your PHP scripts.
Knowledgebase Article 172,858 views tags: include php remote url

How to update your WordPress site, using the WordPress tools
Knowledgebase Article 114,314 views tags: upgrade wordpresstools

There are multiple different ways you can install a theme you have purchased for your WordPress site. This article will explain our two recommended methods for installation.
Knowledgebase Article 100,386 views tags: auto automatic certified download install manual premium themes update upload wordpress

This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Knowledgebase Article 388,455 views tags: htaccess php

We are offering free website migrations for qualifying WordPress websites within the first 30 days after signup. The offer includes the transfer of one WordPress website and the ability to review the site before it goes live.
Knowledgebase Article 67,565 views tags: detail migrate migration offer site website wordpress wp

The first step in the process requires a WordPress theme, preferably one that includes a one-click demo import. Any of the HostGator Certified Themes on HostGator should come with this feature.
Knowledgebase Article 85,041 views tags: MOJO Marketplace demo install press setup theme word wordpress