Skip to main content

Fixed: "Your PHP Installation Appears to be Missing the MySQL Extension which is Required by WordPress."

While installing or running a WordPress website you may hit the server side error "Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress.".

The error generally appears due to outdated PHP version, non-existing MySQL extension on your hosting server or outdated WordPress version. We will see the causes behind the server side error "Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress." and understand how to solve this with few easy steps.

How to fix: Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress.

Why the server side error "Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress." surfaces?

When you make a WordPress install on server or localhost using XAMPP/WAMPP there can be a mismatch among the PHP version required by the WordPress version that you have installed on top of it. There can also be a PHP MySQL extension missing that throws this PHP WordPress server side error Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress. In either of the case the WordPress is not able to connect to MySQl database using the core PHP libraries and unable to function.

Let us now see how can we fix the PHP WordPress server side error "Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress." troubleshooting the above issues.

How to fix "Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress."

There can be several configuration issues that may surface this server side error with the message Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress. Most of the times you will find yourself fixing this PHP WordPress server side error with below troubleshoot steps.

Check and update PHP Version

Check the PHP version your hosting provider is running. This can be checked on localhost as well in same fashion. What you need is to call a PHP core function called "PHP Info". Here is how you do it.

Create a simple file with php extension and upload this to your public_html folder on your hosting or under the main folder on localhost and run the file using the file name.

<?php

phpinfo();

?>

If the PHP version is below 5.6, we recommend you to update the PHP version on your server or localhost to the Latest PHP version from here

Download Latest PHP Version

For a strong enough reason if you can not update the PHP version to lates, you would need to check if the MySQL extension is missing from server. (Look in 3rd point below)

Check and update the WordPress Version

Another issue that reflects in the server side error "Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress." can be a WordPress version mismatch with the PHP version installed on your server or localhost using XAMPP or WAMPP. Check for the PHP version dependency of the WordPress installation before you install. You can download the latest WordPress version from here.

Download Latest WordPress

Check and Enable if MySQL Extension is Enabled on hosting server

For this you need to run the PHP Info function again as we did in frst step. Search for "Client API version" on the displayed result of PHP information on the webpage after running the script. You can do "CTRL + F" to search this on the web page. If you find at least one result, it means the MySQL extension is enabled. Contact your hosting provider to update/enable the required extension.

How to enable PHP extensions in CPanel

  1. Enable PHP extensions on Godaddy
  2. Enable PHP extensions on Hostinger

To conclude the server side error "Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress." can happen due to the mismatch of PHP WordPress version dependencies and the easiest way to solve this is updating the PHP version and installing the related WordPress CMS on it. The custom PHP extensions can be enabled if we can not update the versions in specific cases.

Comments

Popular posts from this blog