I dont quite understand why ppl answer these questions when they have no idea what they are talking about. What you need to do is to configure and compile the php package with mysql support, a simple ./configure --help | grep -i mysql will give us...
--with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
directory. If unspecified, the bundled MySQL library
In other words, you need to use that switch when you configure the php package in order to get support for mysql. Even thought it's installed on the box dosn't mean that there is any connection between php and mysql.