Fix Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress

Your PHP installation appears to be missing the MySQL extension which is required by WordPress” It is an error encountered by many blog owners and websites with WordPress.
It is not a cause for concern. Lack of mysql extension From PHP it is typical of operating systems installed from scratch, VPS or dedicated servers, where PHP extensions have not been part of the installation package. This problem is present both on Ubuntu as well as on Centos. In this scenario, the problem is solved very simply with a PHP update and installing the module “php-mysql“.
UPDATE PHP and mysql extension installation on ubuntu

apt-get update
apt-get install php-mysql

UPDATE PHP and mysql extension installation on Centos

yum update
yum install php70w-mysql

After this step, Restart the Apache service or NGINX.

I also met the scenario in which although the MySQL extension exists in PHP, a blog created on WordPress has displayed the error “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. Most of the time, the error appears when installing WordPress. This time, however, he appeared at a blog that had been active for several years.
In this situation, I found that the problem does not belong to the PHP modules, but the very old WordPress version, which is no longer compatible on PHP 7.4.4RC1. A simple WordPress upgrade to the latest version has solved the error.

Passionate about technology, I write with pleasure on stealthsetts.com starting with 2006. I have a rich experience in operating systems: Macos, Windows and Linux, but also in programming languages ​​and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, Presashop).

Home » Your source of IT tutorials, useful tips and news. » Fix Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress
Leave a Comment