Skip to main content

How to Roll Back a PHP Version After a Website Stops Working

If a website becomes inaccessible or displays errors after you change its PHP version, you can restore functionality by reverting to the previous version. This process allows a customer to quickly restore site stability while you investigate the...

If a website becomes inaccessible or displays errors after you change its PHP version, you can restore functionality by reverting to the previous version. This process allows a customer to quickly restore site stability while you investigate the specific cause of the incompatibility.

Before you begin

You will need:

  • Access to your hosting control panel (such as cPanel or Windows Control Panel).

  • Knowledge of the previous PHP version that was successfully running on the site.

Roll back the PHP version

  1. Log in to your hosting control panel.

  2. Navigate to the section for managing your website's PHP settings. Depending on your control panel, this may be under Select PHP Version, MultiPHP Manager, or PHP Selector.

  3. Locate the specific domain or account that is experiencing issues.

  4. Select the previous, stable PHP version from the available options.

  5. Click Apply, Save, or Update to apply the change.

Confirm the result

Wait 1–2 minutes for the server to apply the changes, then visit your website in a private or incognito browser window.

  • The website loads successfully without error messages.

  • The site functions as expected with the previous PHP version.

If the website still does not load

If the site remains broken after rolling back the version, the issue may be related to a specific configuration setting or a plugin conflict rather than the PHP version itself.

  1. Clear your browser cache or attempt to load the site in a different browser.

  2. Check if the site works for other users to rule out a local cache issue.

  3. If the site remains inaccessible, contact Hostek support and provide the specific error message you see on the screen.

Limitations

Rolling back the PHP version will revert the environment to its previous state. Any specific PHP configuration changes made during the period the higher version was active may no longer apply.

Did this answer your question?