Report this

What is the reason for this report?

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

Posted on July 5, 2015

Your PHP installation appears to be missing the MySQL extension which is required by WordPress. I just restarted the server and this poped up?? Anyone help how to fix it?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Sometimes the host updates the php version. In that case, just log into your control panel find file php.iniand delete the same to trash. and reload your site. It may function properly. don’t delete it permanently. If the site is running let it deleted. Otherwise, you can restore the same. It worked for me.

Your PHP installation appears to be missing the MySQL extension which is required by WordPress How can I fix this? I installed wordpress manually also but it doesn’t resolve this issue Please help me

I had this problem when upgrading to Ubuntu 18.04 on Digitalocean. I followed lots of random instructions after that from suggestions found on the web, resulting in installing many packages, and upgrading to PHP 7.3. The solution that finally worked and got rid of this “missing the MySQL extension” message from my website is the following. sudo a2dismod php7.0 sudo a2enmod php7.3 sudo systemctl restart apache2 After that, phpinfo.php agreed with php -v in the console, and my website worked! Before doing this, I noticed, but didn’t know how to fix, that phpinfo.php did not agree with php -v in the console. I don’t know if some of packages that I installed along the way also contributed to the “missing the MySQL extension” message going away. All I know is entering the statements above was the final fix.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.