How to Change Your PHP Version
access_time
hourglass_empty
person_outline

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.

Conclusion

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

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

Author

king Reply

January 12, 2018

When will you support php 7.2?

    Author

    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

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

Become a part of Hostinger now!