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.
- Log into the one.com control panel.
- click on PHP and database settings, to be found under the tile Advanced settings.
- Scroll down to the PHP version to To update .
- 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.
- Log into your WordPress admin area a.
- click on Dashboard > Updates .
- 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"
- click on one.com > Plugins in your WordPress admin.
- Locate the one.com PHP scanner and click on Install now.
- Then click on Activate.
Step 4 - run a scan and fix any issues
- click on PHP scanner in the left menu.
- Choose the PHP version 7.4, then "All themes and plugins“And then click Start scan.
- Wait for the scan to finish.
- 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.
- 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.
- Return to PHP and database in the Advanced Settings tile in the one.com control panel.
- Scroll down to PHP error messages .
- Put the error messages on A and click on To update .
- 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:
- Temporarily switch to a standard WordPress theme like Twenty Seventeen.
- Deactivate all installed plugins.
- 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.
- Why do I need to update PHP?
- What should I watch out for when upgrading PHP?
- Why are dogs loyal but not humans
- Are there elephant cemeteries
- Which sugar is the healthiest
- Why do we need cleaning services
- My SIM card was hacked
- Can you eat cancer
- What should i do when i'm 20
- How does xenophobia affect South Africa?
- Can I get poison to kill myself
- The expansion of the universe stops expanding
- Why do 12-year-olds intersect
- What is blogging 5
- What is a field of developmental psychology
- Why does sadness feel so overwhelming
- What are the best IPTV providers
- Why is Quora moderation so ridiculously overzealous
- What are creative ways of working
- What is niacin
- Tim Cook is single
- What is the Religious Freedom Institute
- What is your house made of?
- Is vaccination safe for children
- What is the naval officer's wages
- What should all drivers know