I have pretty much the same problem as James... except I didn't use an rpm.
I've done the ./configure --with-mysql=(my dir). And it does everything without errors.
PHP scripts work fine, apache works fine, but PHP isn't recognizing MySQL at all, I get the error:
Fatal error: Call to undefined function: mysql_connect() file.php on line ##
Also, when I run phpinfo(), it also says that I have --without-mysql. Order in which I installed:
apache (came with linux redhat 7.2)
php v4.0.6
mysql v3.23.47
Any info at all would be appreciated.
Thank you.