Why you should update your PHP Version.

Posted By: James Gibson
Date Posted: 31/05/2021

PHP is another important factor for your website. Upgrading and maintaining your current version of PHP is not just important for compatibly. But also for the security of your website. New security features are implemented with each new PHP version. While older versions reach their life cycle and are no longer supported, not receiving updates, creating security vulnerability as they are no longer patched for these new vulnerabilities.

So, what is PHP?

PHP is a hypertext processor that is used with HTML to create scripts for your website. When anyone visits a website, the browser sends the site a request, and PHP scripts compile the HTML packets to send them back to the browser.

Percentage of websites using various versions of php

PHP version 7 alone is used by 65.4% of all the websites that use PHP. 34.1% are still using PHP version 5. It is also one of the best-maintained languages because new updates and features are constantly being pushed out, Version changes happen about once every year. So how do you know what version of PHP your current website is using, and how do you update it?

How do you know which version your site is using?

Finding out your version is simple; you can access all of PHP information by logging into your cPanel. Unsure how to access your cPanel? Its simple just follow this guide!

NOTE – The below will change the PHP version for the entire cPanel. If you have an independent site or development site, that requires a newer version of PHP than other installed sites in your cPanel, we recommend setting the newer site up as a Sub-Domain or addon domain, depending on what your scenario is. Then set the PHP version for that subdomain/addon domain as required via the MultiPHP Manager in cPanel. See THIS ARTICLE for details.

From the main page in cPanel, click the MultiPHP MANAGER link. This can be found under the Software header.

cPanel php manager

You will see a list of all your domains, including addon domains and subdomains. Tick the box next to the site you wish to swap the PHP Version for, see point 1 in the image below. Note down the current version on a notepad in case you experience any issues.

Then from the drop-down list, point 2 below, choose the relevant version.

Then click APPLY, point 3 as shown below.

MultimanagerPHP manager

Please be sure to test all functions of your site, as changing the PHP version can potentially affect various aspects and functionality. If you do experience any issues, please swap back to the version noted down in step 3 and contact Hosting Australia Support.

Compatibility Checker Plugin

You can also check your PHP Compatibility with the WP Engine PHP Compatibility Checker. This plugin can be used by any WordPress website to check your PHP version. Once the plugin is installed follow the instructions to run a scan. The results report will help you identify any potential PHP version conflicts in your code, so you can have them fixed before upgrading.

PHP Compatibility checker

If you need help ...

As always if you need extra support regarding the content in this article our team at Hosting Australia have a range of development and security services that can help your website perform better and protect it from attack ...

Don't risk your valuable business asset.
Get in contact with us to talk about security, backups, speed optimisations and more.

WordPress Website Design

Hosting Australia has a team of expert WordPress Designers, all based in Australia and ready to assist you with any task. From a ground up new site build, updating security or plugins, or just changing some minor details - we can assist with all aspects on your site.

Hit the button below to find our more and get in contact with our design team today.