Cannot Install Amp

Some please help I cannot install amp. I get this error

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

However, Pear is installed in /usr/share/pear/ I also have in my php.ini file

;***** Added by go-pear

What am i missing. Can anyone please help.

Are you sure that you’ve created the DB with

mysqladmin create asterisk
mysqladmin create asteriskcdrdb
mysql asterisk < SQL/newinstall.sql
mysql asteriskcdrdb < SQL/cdr_mysql_table.sql


hmm. no i didnt. I went into mysql to create those databases. will that be an issue

Well, in first time, are you follow the instructions to install freepbx given in this page? that describes how to install it… I suposse your problem has to be witth the DB that freepbxx need to run…

if Centos based,

yum install php-pear-DB


pear install DB


I am tried all that but still no luck i am at my wits end. Any other suggestions.

Download and install DigAnTel

DigAnTel is a FREE Digital / Analog VOIP Telephone system utilizing CentOS Linux (RedHat), Asterisk, FreePBX, PostFix mail server and optionally the OpenFire IM server.

DigAnTel is the glue to bind these technologies thus creating a unified telephony system.


I am having this SAME issue.

DB.php (pear.db) is installed.

I’ve done everything I can find and everything says that pear.db is installed correctly.

./install_amp says it MUST be installed. Could this be a path issue?

I found DB.php in /usr/share/pear/ and added that to the export path, but the error is still occuring.