You may be getting errors when you try to install WordPress on your website. One of the most common errors is “Your PHP installation appears to be missing the MySQL extension required by WordPress” or “The MySQL extension is missing from your PHP installation.” This error message means that something went wrong in your PhpMyAdmin configuration file during the Php installation process.
This article will explain how to fix the “Your PHP installation appears to be missing the MySQL extension which WordPress” Php Error requires.
Now let’s get started with fixing the PhpMyAdmin Configuration File in Php 5.6, Php 5.5, and Php 4.4
Many servers that run old versions of Php, Php 5.5, and Php 4.4 do not support PhpMyAdmin configuration file fix for Php 5.6
What is PhpMyAdmin Configuration File?
PhpMyAdmin Configuration File (my.ini) is a Php configuration file for the Php MySQL extension, which contains all of the settings necessary for connecting to your MySQL database via Php. The MySQL extension replaced MySQL in Php 5.3 and forwards, but still many servers run old versions of Php like PHP 5.5 or PHP 4.4 and cannot upgrade to PHP 5.3+ because it may cause conflicts with the installed version of the Php Web server software such as Apache, Php Nginx Php Phusion Php Phalcon Phyton Python Phidget Phanfare Poodles.
PhpMyAdmin Configuration File is located in different places depending on what version of Php you are running. The location of the configuration file may be different for various servers. Once you find the area where your PhpMyAdmin Configuration File is located, do the following to fix it:
How to fix?
Add this line below the “Enable MySQL” setting somewhere after the “;” mark at the end of the line: extension=mysql.so
Then save and close my.ini file, restart or reload PhpMyAdmin service/process/web service/website.
If by any chance that PhpMyAdmin Configuration File Php location is still wrong or can’t be found, then you might need to search for Php MySQL extension Php in Phpmyadmin Php directory and add Php mysql.dll file in Phpmyadmin Php directory and save and close my.ini file, restart or reload PhpMyAdmin service/process/web service/website.
Note: If there is no mysql.dll Php extension in your Phpmyadmin Phph directory, look at the bottom of this page for alternative fix such as using the .htaccess tutorial Fix WordPress errors related to PHP Extensions such as “Your PHP installation appears to be missing the MySQL extension which WordPress requires.”