Is PHP necessary for WordPress

How do I update PHP for my WordPress website?

In this guide, we are going to show you how to safely update PHP to the latest version without causing glitches on your WordPress website.

Step 1 - Check your current PHP version
Step 2 - Update WordPress to the Latest Version
Step 3 - Install the "one.com PHP scanner"
Step 4 - run a scan and fix any issues
Step 5 - Update PHP to the Latest Version
Step 6 - Make sure your website is intact
Note: A PHP version usually has a life cycle of three years. It should not be used afterwards. For reasons to upgrade, see our guide: Why PHP Needs to be Updated?

Step 1 - Check your current PHP version

First, you need to check what version of PHP you are currently using. Please wait until step 5 in this guide to update.

  1. Log into the one.com control panel.
  2. click on PHP and database settings, to be found under the tile Advanced settings.
  3. Scroll down to the PHP version to To update .
  4. Check which version you are currently using.

If you are using PHP version 7.3 or higher then everything is fine. If you are using PHP 7.2, you will need to update. Please continue with step 2.


Step 2 - Update WordPress to the Latest Version

Make sure that WordPress itself and all themes and plugins have been updated to the latest version.

  1. Log into your WordPress admin area a.
  2. click on Dashboard > Updates .
  3. Make sure you have the latest version of WordPress installed and that all plugins and themes are up to date too. Update them if necessary.
Tip: Are you wondering why it is important to update WordPress? Read our guide: Why You Should Keep WordPress Up-to-Date


Step 3 - Install the "one.com PHP scanner"

  1. click on one.comPlugins in your WordPress admin.
  2. Locate the one.com PHP scanner and click on Install now.
  3. Then click on Activate.


Step 4 - run a scan and fix any issues

  1. click on PHP scanner in the left menu.
  2. Choose the PHP version 7.4, then "All themes and plugins“And then click Start scan.
  3. Wait for the scan to finish.
  4. You can get three results:
    - Compatible = everything is fine!
    - warning = it should work, but could cause problems with the next PHP version
    - error = not so good, will likely cause problems after the update.
  5. Clean up any plugins or themes that contain bugs by either updating it to the latest version (if available) or finding a compatible alternative plugin with the same functionality.
Tip: We recommend only using plugins that are regularly updated and compatible with the latest WordPress version. It is also advisable to completely delete plugins that you no longer need.


Step 5 - Update PHP to the Latest Version

You are now ready for the PHP update. At the same time, we recommend that you activate PHP error messages. If there is a problem with the code, the error messages provide information about the cause and the exact location in the code that contains the error.

  1. Return to PHP and database in the Advanced Settings tile in the one.com control panel.
  2. Scroll down to PHP error messages .
  3. Put the error messages on A and click on To update .
  4. Please change the version directly below 7.4 and click on To update.
Tip: You can also choose to update PHP to "the latest stable version". We will then automatically update PHP for you. For more information, please refer to the guide: What is the latest stable PHP version?


Step 6 - Make sure your website is intact

After the PHP version was changed it takes at least 20 minutesbefore the changes take effect. If you have a website with a constant number of visitors, it can take several hours. For this reason, we recommend that you regularly check your website randomly over the next 24 hours.

If your website isn't working as expected, it's probably due to a plugin or theme. To find out what the problem is, do the following:

  1. Temporarily switch to a standard WordPress theme like Twenty Seventeen.
  2. Deactivate all installed plugins.
  3. Activate all plugins and themes one after the other. Check every time that your website is still intact.

If you can't access the WordPress admin, you can disable plugins and themes from the database. The following instructions will help you:

Disable WordPress plugins in phpMyAdmin
Change your WordPress theme in the database

Please do not hesitate to contact us for more information. Our support can assist you in finding the source of the error. Note, however, that we cannot fix the code for you. This is your responsibility.


Related articles:

Why do I need to update PHP?
What should I watch out for when upgrading PHP?