Problem with install_amp

Hy folks

I’m trying to install Freepbx 2.9.0 on gentoo-linux using this manual: (http://en.gentoo-wiki.com/wiki/Asterisk_and_FreePBX_on_Vserver)

Mysql is Version 5.1.56
PHP is cli-PHP5.3

If i’m trying to execute install_amp i become the following message:

sip freepbx-2.9.0 # ./install_amp
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
PHP Strict Standards: Non-static method Console_Getopt::readPHPArgv() should no t be called statically in /usr/src/freepbx-2.9.0/install_amp on line 546

Strict Standards: Non-static method Console_Getopt::readPHPArgv() should not be called statically in /usr/src/freepbx-2.9.0/install_amp on line 546
PHP Strict Standards: Non-static method Console_Getopt::getopt() should not be called statically in /usr/src/freepbx-2.9.0/install_amp on line 546

Strict Standards: Non-static method Console_Getopt::getopt() should not be calle d statically in /usr/src/freepbx-2.9.0/install_amp on line 546
PHP Strict Standards: Non-static method Console_Getopt::doGetopt() should not b e called statically in /usr/share/php/Console/Getopt.php on line 92

Strict Standards: Non-static method Console_Getopt::doGetopt() should not be cal led statically in /usr/share/php/Console/Getopt.php on line 92
PHP Strict Standards: Non-static method PEAR::isError() should not be called st atically in /usr/share/php/Console/Getopt.php on line 109

Strict Standards: Non-static method PEAR::isError() should not be called statica lly in /usr/share/php/Console/Getopt.php on line 109
Checking user…OK
Checking if Asterisk is running…running with PID: 12133…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…1.8.7.1
Checking for selinux…PHP Notice: Undefined offset: 0 in /usr/src/freepbx-2.9.0 /install_amp on line 902

Notice: Undefined offset: 0 in /usr/src/freepbx-2.9.0/install_amp on line 902
OK
Connecting to database…FAILED
[FATAL] mysql PHP libraries not installed

In a other forum i’ve read, that the first error’s “php strics standarts” is not a problem, it should be more a hint.

I’m sure, i’ve installed all the neccessary packages. Mysql is running. Users and databases are created and the permissions are made in sql.

Does anybody has an idea?

Thanks!

Has nobody an idea? No hints?

WHen i run the command i get:

[[email protected] freepbx-2.9.0]# ./install_amp --username=asteriskuser --password=SOMEPASSWORD
Checking for PEAR DB…FAILED
[FATAL] PEAR must be installed (requires DB.php). Include path: .:/usr/share/pear:/usr/share/php

Can any one help?

Sounds like you missed some steps on installing and dependencies.

The best install instructions are at www.powerpbx.org

Thanks for the info.
Can you please tell me how to fix it?

Don’t know anything about gentoo Linux. It appears you are not very familiar either.

I have not heard of anyone running Asterisk/FreePBX on gentoo. Why not make it easy on yourself and use the supported flavor of Linux CentOS?