installing mysql5 with php5 on Ubuntu for Wordpress

You need to install php5-mysql.

And then don’t forget to restart Apache. Just reloading won’t work.