Last Updated on May 25, 2021 by Oluwatuyi
Recently, I have an issue on PHP installation appears to be missing the MySQL extension which is required by WordPress but later we understand that it is not really a big issue to solve but you just needs to update your PHP Version of WordPress.
WordPress is written in the PHP programming language. It is a server-side language, which means it runs on your web hosting server to dynamically generate WordPress pages.
We will explain how PHP updates by your web host impact your WordPress sites. We will also discuss the things you can do to avoid any conflicts or downtime on your website.
Also, How to solve PHP installation appears to be missing the MySQL extension which is required by WordPress
What is PHP
PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. The PHP reference implementation is now produced by The PHP Group.
What is PHP in WordPress
PHP in WordPress is a programming and scripting language to create dynamic interactive websites. WordPress is written using PHP as the scripting language.
A PHP update by your web host is supposed to go smoothly, but it can also go terribly wrong. It all depends on your web host, and how they configure their servers.
This is why we recommend our users to choose the best WordPress hosting, so they know that there are top-notch engineers who are looking after those servers.
Relationship between WordPress and PHP Version
WordPress and PHP Updates
WordPress is developed using open-source programming language PHP. At the time of writing this article, WordPress requires at least PHP version 5.7 or greater. The current stable version available for PHP is 7.4.0.
Some web hosts may even allow you to change your PHP version from their control panel.
Things You Need To Do When Your Host Updates PHP
Your web host is probably already hosting thousands of WordPress site. They will take every precaution they can to make sure that everything goes smoothly and customers don’t feel any glitch in the service.
The notice you have received allows you to be informed about the update and keep a look out to see if anything goes wrong. Although it is unlikely that this update will break things, it is always good to have a fallback plan.
Make sure you backups your content, the next thing you need to do is to make sure that you are running the latest version of WordPress. Also make sure that all your plugins and themes are up-to-date.
Go to Updates screen and install any updates available.
WordPress itself and most popular WordPress plugins will not be affected by PHP update. However, it is possible that some plugin may stop working.
If a plugin on your site has stopped working due to a PHP update, then you need to contact the plugin author for support or find an alternative.
How to solve PHP installation appears to be missing the MySQL extension which is required by WordPress
In some cases, the correct functioning of your website depends on a PHP version installed on the server.
Thanks to the PHP Selector function, it is possible to select the necessary PHP version as well as enable/disable certain PHP modules and functions.
- Log into your cPanel account.
- Scroll down to the Exclusive for Namecheap Customers section >> Select PHP Version:
Here you will see the list of available modules and extensions.
- If you do not need to change the PHP version and just want to turn on/off specific extensions, you can do this by checking/unchecking the corresponding boxes.
- Use the Current PHP version drop-down box to select the required version and click on Set as current in order to apply the changes.
- To change individual settings within the PHP version in question, click on the Options tab.
- By clicking on one of the options in blue, you will be presented with a drop-down list to change specific settings
- In order to increase the max upload size, make sure to modify both post_max_size and upload_max_filesize values.
What to Do if a PHP Update Breaks your WordPress Site?
There are very little chances of a PHP update breaking your WordPress site. However, with the abundance of free and paid plugins, a single line of poor code can result into an error.
The first thing you need to do is make sure that it is not a plugin or theme causing this error. To do that deactivate all your WordPress plugins and switch to a default WordPress theme.
If this does not solve your issue, then contact your web host’s support team. There is a good chance that the issue you are facing will already be in their notice, and they will be able to assist you.
If your web host is unable to help you out, then try to install a fresh copy of WordPress and then restore your WordPress site from backup.
If none of this helps, then perhaps it is time to change your WordPress hosting.
We hope that this guide helped you understand how PHP updates by your web host impact your WordPress site. If you have any issues related on this post please don’t hesitate to use our comment box or contact us on Facebook, we will always be ready to reply you as soon as possible.