All Collections
PHP
PHP Versions
How to Change the PHP Version of Your Hosting Plan
How to Change the PHP Version of Your Hosting Plan

Changing the PHP version of your website at Hostinger

Updated over a week ago

To change the PHP version of your hosting plan, go to the Websites section and click on Manage next to the website in question. Then, search for PHP Configuration on the sidebar and click on the given result to access those settings:

The PHP Configuration menu item

On the PHP Configuration page, select the PHP version you wish to use and click on Update:

The PHP version tab showing the available PHP versions

The PHP version will be updated within a couple of minutes.

How to Select an Unsupported PHP Version

To enhance website security and protection, make sure that your website code is compatible with the latest PHP version.

However, sometimes an older PHP version may be necessary, e.g., for testing and troubleshooting. To find all the available versions, click on Show no longer supported PHP versions:

The PHP version tab showing how to display unsupported versions

Make sure to revert it back to a supported version as soon as you're ready.

NOTES

  • This change will apply to all the websites added to your hosting plan (except for websites created using the Hostinger Website Builder). To change the PHP version of a specific website only, follow this guide: How to Change the PHP Version for Subfolders or Subdomains

  • The PHP version cannot be changed if you only have websites created with the Hostinger Website Builder

Did this answer your question?