• Call: +1 (858) 429-9131

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

We have came across the following error quite a few times.

 

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

Though it may sound tricky, the error can be quickly fixed by installing missing PHP libraries. This often happens because of the upgrades.

In PHP 7.x we can fix using the following

sudo apt-get install php-mysql

Older PHP versions can be fixed by the following

sudo apt-get install php5-mysqlnd-ms

Don’t forget to restart Apache / Nginx or the relevant web server to load the libraries / modules.


Associated Links

  • PHP
  • WordPress

  • Leave a Reply