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

Fake CVR Generator Denmark

What Is Danish CVR The Central Business Register (CVR) is the central register of the state with information on all Danish companies. Since 1999, the Central Business Register has been the authoritative register for current and historical basic data on all registered companies in Denmark. Data comes from the companies' own registrations on Virk Report. There is also information on associations and public authorities in the CVR. As of 2018, CVR also contains information on Greenlandic companies, associations and authorities. In CVR at Virk you can do single lookups, filtered searches, create extracts and subscriptions, and retrieve a wide range of company documents and transcripts. Generate Danish CVR For Test (Fake) Click the button below to generate the valid CVR number for Denmark. You can click multiple times to generate several numbers. These numbers can be used to Test your sofware application that uses CVR, or Testing CVR APIs that Danish Govt provide. Generate

How To Iterate Dictionary Object

Dictionary is a object that can store values in Key-Value pair. its just like a list, the only difference is: List can be iterate using index(0-n) but not the Dictionary . Generally when we try to iterate the dictionary we get below error: " Collection was modified; enumeration operation may not execute. " So How to parse a dictionary and modify its values?? To iterate dictionary we must loop through it's keys or key - value pair. Using keys

How To Append Data to HTML5 localStorage or sessionStorage?

The localStorage property allows you to access a local Storage object. localStorage is similar to sessionStorage. The only difference is that, while data stored in localStorage has no expiration time untill unless user deletes his cache, data stored in sessionStorage gets cleared when the originating window or tab get closed. These are new HTML5 objects and provide these methods to deal with it: The following snippet accesses the current domain's local Storage object and adds a data item to it using Storage.setItem() . localStorage.setItem('myFav', 'Taylor Swift'); or you can use the keyname directly as : localStorage.myFav = 'Taylor Swift'; To grab the value set in localStorage or sessionStorage, we can use localStorage.getItem("myFav"); or localStorage.myFav There's no append function for localStorage or sessionStorage objects. It's not hard to write one though.The simplest solution goes here: But we can kee