How to Update PHP on my WordPress site
When you host a website, the PHP version you choose determines how fast and secure it is. What is the issue? Update PHP seems a little like delving into the weeds to the ordinary WordPress vendor or blogger.
You built a website to sell handmade candles or to talk about reality TV, and now you’re being told you need to learn computer languages? That’s correct. You may not fully comprehend what it accomplishes, and you surely do not spend the majority of your day contemplating it.
It’s vital, though, and changing it isn’t as difficult as you may assume.
Let’s take a look at why and how you should maintain your PHP to retain the WordPress site updated.
What exactly is PHP in WordPress? Also, why do we have to update PHP?
The abbreviation PHP stands for hypertext preprocessor, which is a bit nonsensical. In a nutshell, it’s an open-source programming language that’s at the heart of how WordPress works. It secures data by encrypting it. It also serves as the foundation for publishing dynamic blog material using the WordPress CMS.
Consider it the rails that keep the train on your WordPress site moving smoothly.
PHP, like WordPress, has several versions. These versions grow in tandem with the internet, offering new features to ensure the safety of your website.
What’s the point of upgrading it? For starters, update PHP versions to speed up and improve the performance of your website. The update PHP from 5.6 to 7.0, for example, increased website speed, according to Kinsta.
However, you must adhere to your hosting plan’s requirements. In January, versions 5.2 and 5.3 were withdrawn from Host On Fox’s “Shared and Reseller” hosting plans.
Although updated PHP versions 7.3 and 7.4 are still widely used, update PHP versions up to 8 are currently available. Which version of the software should you install? If you’re reading this, you’re probably in need of an upgrade already. At the very least, version 7.3 will keep your site up to date with HostOnFox’s current needs.
The best part is that update PHP is far less difficult than it appears. The steps are as follows:
- Diagnosing the PHP in WordPress
- Updating the WordPress PHP by using the HostOnFox web hosting
Now let us discuss both of these steps:
1. Diagnosing the PHP in WordPress
You have several choices for upgrading your PHP, which is shown below. But we’ll begin with WordPress since it has one major benefit: it allows you to see the update PHP version in one glimpse.
Following are the steps to perform a diagnosis of the PHP version before other steps:
- Select Tools in WordPress, and then click on the Site Health
- After selecting the Server, the current status of the PHP of your Server will be shown in the form of a list in a row
Now, if you do not find the version you want, it is a sign. It is time for you to go to the next step.
2. Updating the WordPress PHP by using the HostOnFox web hosting
Assuming you’re utilizing HostOnFox, go to your cPanel and change your PHP version by using the MultiPHP Manager. Formerly, “PHP Selector” was one of HostOnFox’s methods. However, we’ll concentrate on the MultiPHP Manager technique instead because we’re gradually phasing it away.
- Start by logging in to your cPanel
- Next, go to the option “Quick Function” in the search bar and then write “Multi.” This step will open the “MultiPHP Manager” without much trouble. Just click on that option.
- Now, select the appropriate domain by scrolling down.
- Navigate to the PHP version section; choose the version you wish to use, and then press Apply.
- Look for an alert that says, “Successfully applied PHP version…”
- Whether you used the instructions below to generate a phpinfo file, reload the webpage to see whether modifications have taken effect.
If you plan on the update PHP version as frequently as possible, you might want to create a PHP info file in HostOnFox to double-check that your transition was successful—or just to remind yourself about the version you’re using.
Worth noting: When you already recognize your PHP version, proceed to the section below on How to Revamp Your WordPress PHP. Alternatively, you’ll become annoyed by a slew of insignificant actions.
When you’re unclear regarding your PHP version, a phpinfo.php file can assist you in diagnosing it at any time in the future with a quick scan.
Simply follow the following steps:
- Log in with your username and password in the cPanel
- Go to the option “”
- Now the open options will show you “WordPress Manager and Perl Modules.” But don’t stop here; keep going down on the page till you reach “MultiPHD Manager” and then select it.
Some other steps can include:
- Scroll down to File Manager in your HostOnFox cPanel & hit.
- This will direct you to your own folder. If you’re operating in public HTML, scroll to the bottom and double-click that folder.
- Select +File from the drop-down menu. Start a different file with the name phpinfo.php using the command “create a new file.”
Then you may select one of the code alternatives from our phpinfo files and copy and paste it. So here is the code for displaying all PHP data:
#To examine the loaded modules with their current values, run the following code.
phpinfo(INFO_MODULES); // This would be used to display the installed modules and their current values.
- In the cPanel of the Host On Fox, after right-clicking php and then finally selecting the editing option
- Now, paste the copied information and then Save all changes.
In your browser, go to your phpinfo.php page. If you stored the File under public Html, just type www.your-domain-here.com/phpinfo.php into your browser. Look for the PHP version towards the top of the page to see what you’re trying to run.
It just takes a few minutes, but update PHP on your WordPress site may improve performance, speed, and security right away. It always pays to keep current, given the needs of today’s leading search engines. What’s the good news? It just takes a few moments to stay that way if you do it correctly.
Do you want a simple solution to keep your website current?
Try HostOnFox’s managed WordPress hosting for economical, easy-to-manage website hosting.