undefined function mysql_connect() - but php is --with-mysql

Hi there,

I realize there are similar posts to this in the forum; I read them; none quite cover my problem that I can tell.

Our hosting provider accidentally formatted the disk on our box (yeah, I know...). So I have migrated to a shiny new CentOS 5 server. But now PHP claims that mysql doesn't exist.

If I look at php info, it shows --with-mysql, but there is no mysql section farther down. It looks like it might be having trouble finding the mysql.so file?

Check out the phpinfo, which I'll leave up till the error is resolved: http://dev.yyyyyyy.net/phpinfo.php (replace yyyyyy with zentrack)

And a sample of the problem: http://dev.zentrack.net/track/

I have the php-mysql module installed (there is no php
5-mysql that I could find for CentOS 5):
----------------
[root@server apf]# yum install php-mysql
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* virtualmin: software.virtualmin.com
* base: centos-distro.cavecreek.net
* updates: mirrors.versaweb.com
* virtualmin-universal: software.virtualmin.com
* addons: mirrors.serveraxis.net
* extras: mirrors.cmich.edu
Setting up Install Process
Parsing package install arguments
Package php-mysql - 5.1.6-20.el5_2.1.i386 is already installed.
Nothing to do
------------

This problem is fairly critical for us as all our PHP sites are down until we can resolve it, and there's no going back because of our dummy-head facility.

CentOS 5.2 (Final)
Webmin 1.470
Virtualmin Pro 3.67
Kernel and CPU 2.6.18-92.1.22.el5 on i686
Apache 2.2.3
PHP 5.1.6

Status: 
Closed (fixed)