Php-pear-DB and php-mysql missing on Yum - CentOS 5.2 Final

I’m going through the tutorial to install FreePBX from this link:
http://www.freepbx.org/support/documentation/installation/install-process-for-centos-5-1

And I got to this point:

yum install php-pear-DB

yum install php-mysql

But when I try to get and install those two “things” (programs? dependencies…?), I get this error:

[root@sip ~]# yum install php-pear-DB
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile

It’s the same “error” for both of them, yum can’t find the respective files to download apparently. I tried a yum clean all already, and then yum update, but nothing done.

I imagine that, because of the lack of those two downloads, when I try to move on to the next step, this one:

./install_amp --username=asteriskuser --password=SOMEPASSWORD

I get the following error:

[root@sip freepbx-2.5.0]# ./install_amp --username=asteriskuser --password=SOMEPASSWORD
-bash: ./install_amp: /usr/bin/php: bad interpreter: No such file or directory

Any ideas of how to solve this? I’m running CentOS 5.2 Final.

Thank you!

I didn’t have a problem installing php-mysql from the normal repositories, but I had to manually install pear-DB from source.

Grab it from here - http://download.pear.php.net/package/DB-1.7.13.tgz

and then do a pear install DB-1.7.13.tgz

there is also a note that pear-db has been superseded by MDB2, so you may want to try yum installing php-pear-MDB2 or php-pear-MDB2-Driver-mysql. Not sure whether these work or not though as I haven’t tried them myself…

HTH

M