Get a faster, more secure website: update PHP today

Your WordPress site can be faster, and more secure, and you can make this happen!

This page will explain why this matters to you, and then how you can fix it.

Why PHP Matters To You

PHP is one of the programming languages that WordPress is built on. Your hosting company determines which versions of PHP are available for your site, and many hosters let you change this yourself. And while you may be familiar with the importance of keeping WordPress, and your themes and plugins up-to-date, keeping PHP up-to-date is just as important.

There are two main benefits to keeping PHP up-to-date:

  • Your website may be faster because PHP becomes more efficient with each new version. Updating to WordPress’s recommended PHP version (currently 7.4 or higher) can deliver a performance increase that will benefit all visitors to your website.
  • Your website will be more secure. PHP, like WordPress, is maintained by its community. Because PHP is so popular, it is a target for hackers – but the latest version will have the latest security features. Older versions of PHP (lower than 7.4) do not have this, so updating is essential to keep your WordPress site secure.

And then there are a number of secondary benefits:

  • A faster WordPress website will be rewarded by search engines, so you’ll rank higher in search!
  • A faster website will retain visitors better (they’ll leave if it takes too long to load), making your website more effective.
  • A more secure website is better protected against hackers, and the cost and reputational damage associated with a hacked website.

These benefits are good for you, and good for your website’s visitors. These are the reasons you should update PHP today. The next section will show you how to do this.

How to check your PHP version

To check what version of PHP your WordPress site is using, from the WordPress Dashboard, select Tools > Site Health from the sidebar menu, and then select the Info tab. Expand the Server section and scroll down until you see PHP version.

If this number is at or higher than PHP 7.4, then you don’t need to update PHP at this time!

However, if your site is lower than the recommended version, running on an outdated and insecure version of PHP, then it’s time to update. You also may have noticed a warning such as “PHP Update Required” or “PHP Update Recommended” on the Dashboard or in Site Health – these serve as important reminders to update PHP and make your site more secure.

Before you update your PHP version

This section starts off with some warnings, but don’t be afraid! As with most things technical, we just need to cover some background before we can get to the part where you update your PHP version.

Updating your PHP version should not be a problem, but we can’t guarantee that it’s not. WordPress itself works with PHP as far back as version 7.2.24, but we don’t know if your themes or plugins will work on newer versions. They should, and popular or reputable ones almost certainly will, but they should be tested to make sure.

There are a couple of steps you should take to avoid problems before proceeding:

  • Make a backup of your website: a backup will let you revert your site to how it is right now in the event anything goes wrong. There are plenty of free backup plugins available, so if you don’t have a backup solution already – use one of these. In order to revert this backup, you’ll also need your web host to move your PHP version back to your current version (we’ll cover how to do this later).
  • Update WordPress, themes, and plugins: from your WordPress Dashboard, head to the Updates page under the Dashboard > Updates menu, and then update everything. You should do this regularly anyway :). When done, check that your site is working as expected.
  • Check PHP compatibility: install the PHP Compatibility Checker plugin to check your themes and plugins for possible issues. This plugin isn’t perfect and may miss items or flag false positives, but it does work in most cases.
  • Fix any PHP compatibility issues: if the PHP Compatibility Checker plugin picks up any issues, get in touch with the theme or plugin developer and ask them to investigate. If they can’t or won’t get back to you, have a look for themes or plugins on www.ads-software.com with similar functionality and use one of these instead.

Run through these steps, and you’ll be ready to update the PHP version on your WordPress site – and enjoy all of the benefits that come with this!

If you run into any issues whilst doing this or need help, you should contact a professional web developer, your hosting company, or your theme and plugins authors. All of these will be happy to help here.

We can now get on to the final part: actually updating your website’s PHP version.

How to update your website’s PHP version for a faster, more secure website

You’re now ready to update your website’s PHP version! You’ve done due diligence, got backups, and are in the best possible shape to do the update.

PHP is installed on your website’s server, so updating it involves either interacting with your host’s settings or asking your provider to do it for you.

Exactly how to do the update depends on your hosting company. We’ve asked hosting companies to submit instructions on how to update your PHP version on their hosting, and you’ll find a list of hosts who have instructions available here.

If you can’t find your host on this list, then email your hosting company and ask them to help! Here’s some template text you can use:

Dear Hosting Provider,

I want my WordPress website to be as performant and
secure as possible with the latest version of PHP.
If the server my site is hosted on is not already on
the latest version of PHP, please let me know what
steps I need to take to update it.

Thanks!

If you run into any issues at this stage, either change the PHP version back yourself, contact your hosting company or a professional web developer. In the unlikely event something goes wrong and you need to restore your backup, contact your host and ask them to restore the previous version of PHP you had running. You can then restore your backup.

You should now have all the information you need to update! Nice work! With an up-to-date version of PHP you’ll enjoy a faster, more secure website and happier visitors.

Faster, more secure WordPress websites for all

Making sure you have the latest version of PHP ensures your website is as fast, and secure as possible.

You now have all the information you need to update to the latest version of PHP, and you know how to update in the future as well. Look out for more PHP update messages on your WordPress Dashboard going forwards, or keep an eye on your hosting company’s news for more information.

As a final reminder: contact your hosting company, a professional web developer, or your theme and/or plugin authors for any additional questions. They’ll all be able to help out with their areas of expertise.

Thanks for making the internet a better place!