I have built PHP 7 with a configuration that worked for a previous version of PHP. Now my WordPress websites get the message:
Your PHP installation a
On Ubuntu, I fixed this error by running
sudo apt-get install php-mysql
And then restarting my server (caddy, but you might be using apache or nginx).
source