I was having the same problem described here, and I fixed it by adding the correct path to DB.php on the install_amp script.
Now I get this error:
/usr/src/freepbx-2.5.1# ./install_amp
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…FAILED
[FATAL] PEAR must be installed (requires Console/Getopt.php). Include path: .:
If I add the correct path /usr/share/php/Console/Getopt.php then the script halts without an error message.
I’m sure it is a path issue, because all the packages are correctly installed, but I dont know where to make the corrections.
How do I fix this problem?
Thanks,
Rogelio