Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress

WordPress Missing the MySQL Extension Error

In this post, We are going to Solve another WordPress Error Called, “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

Solve WordPress Missing the Mysql Extension on Dedicated Server

If you’re getting this error “Missing the MySQL extension” on WordPress installation time on a dedicated Server like AWS EC-2 or Digital Ocean Google Cloud Compute or Others, that means you have not installed the PHP MySQL ( php-mysql ) extension on your Server.

Let’s solve the missing MySQL extension error, First We need to log in with our SSH Console, and then we run the php-mysql installation command. run the below mention command for Different OS.

Ubuntu Server Command:

Red Hat or Centos Command:

After installing the php-mysql extension restart your web service using the mentioned command, if you’re using the Nginx web service you need to restart as well your Nginx server.

Once your web service is restarted go to your browser and restart reload the page again or you can continue your WordPress installation.

Fix on Cpanel Hosting – Your PHP installation appears to be missing the MySQL extension which is required by WordPress

As we can see in the image we are getting a WordPress Installation Error on our Cpanel Web hosting “our PHP installation appears to be missing the MySQL extension which is required by WordPress”

Let’s fix this error on Cpanel Hosting, first, we log in with our Cpanel and search for PHP Tweaks

After clicking on the PHP Tweaks button, the page redirects to the PHP Tweaks configuration page now Select your domain and set check the latest PHP support version in my case 7.4.

After changing the selected domain PHP version we need to enable also three PHP MySQL plugins ( mysql, mysqli, mysqlnd ).

After enabling the required WordPress plugins then we need to reload the installation page, as we can see our Installation is started which means our Error is fixed.