Skip to main content
All CollectionsPHPPHP 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 all your websites at once using hPanel at Hostinger

Updated over a week ago

To change the PHP version of your hosting plan, go to the Websites section and click on Dashboard 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 will be updated within a couple of minutes.


The selected version will apply to all the websites added to your hosting plan (except for websites created using the Hostinger Website Builder).

Unsupported PHP versions

It's recommended to make sure that your website code is compatible with the latest PHP version. For security reasons, deprecated versions (7.2 and lower) are unavailable on hPanel. In addition, using an unsupported version may cause stability and performance issues on your website.

However, sometimes, an older PHP version may be necessary, e.g., for testing and troubleshooting. In that case, you can temporarily change the PHP version on a specific by editing its .htaccess file.

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

NOTES

  • To change the PHP version of a specific website, you can edit the htaccess file.

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

Did this answer your question?