Many websites using the WordPress CMS use PHP coding language. You may have come across a message about updating your PHP if you own such a website. You should not ignore this message as it is important for two main reasons:
- Security – web applications and software release updates to seal off any vulnerabilities posed by hackers, viruses and bots. That is why your website should run on the very latest PHP application.
- Stability – websites or applications are rarely independent. They depend on other apps, plugins, themes, etc, to offer you full functionality. Every update should offer your website the stability it requires when integrated with other applications. Running on a deprecated version of PHP may crash your website or other applications, as well as expose it to security vulnerabilities.
How to update PHP in cPanel
Since WordPress and other CMS’s have made it easy for people without professional coding expertise to take charge of their websites, knowing how to update PHP is a must. It is an easy process. The main requirement is that you must have the login access to your cPanel. If you don’t, it is wise to ask your hosting provider to provide you with the credentials.
- Log into your cPanel
- Scroll down to the Software section.
- Select MultiPHP Manager and click on it
- In the MultiPHP Manager is a list showing the website and any subdomains you may be running. Check the small box on the left next to the domain or subdomain you want to update.
- On the right, you will see PHP Version dropdown arrow. Click on the dropdown arrow to select the version you want.
- Click on Apply.
You should not skip a version of PHP if you haven’t updated your website recently. For instance, if your website is currently on PHP Version 7.0, you SHOULD NOT select the latest in this case PHP Version 7.3 and apply. Your website may break. Instead, you must update from one version at a time, to the next until you get to the latest. In this instance you will update to PHP Version 7.1, then to Version 7.2, and finally to Version 7.3.