try to install php-mysql with following command sudo apt-get install php-mysql and restart your server