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
- WordPress Install on CyberPanel
- Free WordPress Hosting On AWS
- WordPress IP error Fix
- WordPress Install Apache Server
- 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:
sudo apt install php-mysql -y
service apache2 restart
Red Hat or Centos Command:
sudo yum install php-mysql -y
systemctl restart httpd
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.
1 thought on “Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress”
Thanks for your blog, nice to read. Do not stop.