If you want to enable MySQL support in PHP5 in Ubuntu follow along…
SSH into your server and type this:
So lets install it with:
apt-get install php5-mysql
Edit your php.ini file at /etc/php5/apache2/php.ini
and change it to
notice no ; in the above thus enabling it.
Log into Virtualmin and relaunch Apache, I had to REBOOT my machine for the changes to take effect.
In your apache root directory drop this phpinfo.php file in
Then view the above at http://yourdomain/phpinfo.php and look for mysql in the list.