How to Change Your PHP Version

How to Change Your PHP Version

In this article, we will show you how to change the PHP version by using the Hostinger hPanel. Let’s start!

Why We Should Change the PHP Version

Each script or piece of code that you enter on your site has some requirements to meet to execute properly. The PHP version is one of the factors. Updating your PHP to the latest version will not only help run your commands smoothly, but it will also increase your site’s loading speed, performance, and security.

As the PHP language itself is continuously being updated, most popular content management systems like WordPress and Joomla quickly adopt these changes and suggest their users switch to newer PHP versions as well.

Changing PHP Version in Hostinger

Currently, Hostinger’s control panel supports PHP version 7.1 and above. If possible, it’s recommended to use the latest version available. This way you get to benefit from both the performance and security improvements that come with the updates.

It’s worth noting, that while in this example we will use the hPanel, the process for alternative control panels, like cPanel, is quite similar.

To easily change the PHP version on the hPanel:

  1. Login to the hPanel, scroll down to PHP Configurations under the Advanced category.
  2. Then, select the version of PHP you want to use from the menu and click Save.PHP configuration tool on Hostinger's hPanel
  3. That’s it! Now you can go back to the hPanel and check if the changes have been updated in your control panel statistics.The image highlights website details on the hPanel

Important: we recommend checking the requirements and compatibility of the scripts, plugins, and themes you use before choosing which PHP version to use for your website.


There you have it. Now, you know how to change the PHP version on Hostinger’s hPanel! This skill will help you more efficiently manage how your site works and will give a better understanding of plugin and script compatibility. If you have any questions, let us know in the comment section.

The Author


Merkys M. / @merkys

Merkys is a server administrator and Linux expert at Hostinger. He keeps everything up & running while tackling advanced server management issues. Besides that, he’s a big fan of blockchain technology, web development, and bodybuilding.

Related tutorials


king Reply

January 12 2018

When will you support php 7.2?


    Domantas G.

    Replied on January 15 2018

    Hey king, Support for PHP 7.2 should be added in near feature. Our devs are already testing it



September 09 2020

I'm just follow these steps, but my wordpress still saying that I use PHP 5.6. Whats wrong ?


    Tomislav T.

    Replied on November 11 2020

    Hey there Gabriel. Make sure to press SAVE on the bottom, and clear your browser cache before checking again. The PHP version should show correctly.


Godwin Reply

November 19 2020

I followed the steps and everything seems to be working perfectly but when I ssh into the my hosting and check the php version it still shows the old php i had before. Is there a different method for ssh?



    Replied on February 09 2021

    Hi there! You can also use this method of creating a phpinfo file to check the current version of your PHP as well as other PHP settings ;)


Manish Ishwar Khutade Reply

January 01 2021

php 8??



    Replied on February 09 2021

    Hi there! System administrators are currently testing PHP version 8, so it should be ready for shared and cloud servers fairly soon!

Leave a reply




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

Become a part of Hostinger now!