Installation error for freepbx 2.10

I am installing freepbx on my VPS. I already install asterisk 1.8.6 and now trying to install the freepbx. I am getting the pear error. Can you anyone please suggest.

Checking for PEAR DB…FAILED
[FATAL] PEAR must be installed (requires DB.php). Include path: .:/usr/share/pear:/usr/share/php

if check the pear its already install

rpm -qa | grep php-pear

please suggest

Thank you for the reply now I am getting the following errors

[[email protected] freepbx-2.10.0]# ./install_amp
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking user…PHP Fatal error: Call to undefined function posix_getpwuid() in /var/www/html/freepbx-2.10.0/install_amp on line 759
[[email protected] freepbx-2.10.0]#

Please suggest, if there is some PHP settings required.

You need the php-process package.

Hello Bryan,
Thank you for the support. I am left with last step and that is mysql database connectivity.
Mysqld daemon is running
and I am
getting the following error

Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…
Checking for selinux…OK
Connecting to database…FAILED
Try running ./install_amp --username=user --password=pass (using your own user and pass)
[FATAL] Cannot connect to database

If I use
mysql -u root -p
and give the username and password. I can connect to the mysql cli
but I use the same credentials it fails in freepbx installation.

You don’t have pear DB installed. To install you can do one of the following:

yum install php-pear-DB


pear install DB

Hi,everyone,i a new in asterisk,i am trying to install freepbx 2.9.0 in asterisk,but finally when i type ./install amp,it says:fatal,cannot connect to database,i’m working on debian squeeze 6.0.
Thank you,everyone.