I am having some dificulty getting freepbx to install. I think I have googled and searched here unable to find a answer so here I go
I am running Debian
uname -r
2.6.32-5-amd64
asterisk-1.8.6.0
freepbx-2.9.0 (attempting to install)
I thought it was my mysql user and password so I went to defaults
./start_asterisk start
all good here
created the databases no problem and loaded in the tables no issues
created user
GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY ‘amp109’;
GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY ‘amp109’;
all good til I try to run the install
everything is happy till apply_conf.sh can not seem to find the /etc/asterisk dir. I mean its there it just filled it with files a sec ago… now it does not seem to get it there?
Connecting to database…OK
Checking current version of AMP…2.9.0
Installing new FreePBX files…OK (759 files copied, 0 skipped)
Configuring install for your environment…amportal…fpbx…freepbx_engine…done
apply username/password changes to conf files…/usr/src/freepbx-2.9.0/apply_conf.sh: line 51: [FATAL]: command not found
sed: can’t read /cdr_mysql.conf: No such file or directory
sed: can’t read /cdr_mysql.conf: No such file or directory
sed: can’t read /cdr_mysql.conf: No such file or directory
sed: can’t read /manager.conf: No such file or directory
sed: can’t read /manager.conf: No such file or directory
done
creating missing #include files…OK
OK
Setting permissions on files…/usr/local/sbin/amportal: line 46: [FATAL]: command not found
/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
mkdir: missing operand
Try `mkdir --help’ for more information.
OK
Checking for upgrades…No upgrades found
Creating or updating freepbx_conf settings…OK
Generating AMP configs…
Generating Configurations.conf, (if Asterisk is not running, you will get an error
In case of error, start Asterisk and hit the red bar in the GUI to generate the Configurations.conf files
[FATAL] DB Error: connect failed
Trace Back:
/var/www/html/admin/common/db_connect.php:63 die_freepbx()
[0]: DB Error: connect failed
/var/www/html/admin/bootstrap.php:75 require_once()
[0]: /var/www/html/admin/common/db_connect.php
/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php
/var/lib/asterisk/bin/retrieve_conf:6 include_once()
[0]: /etc/freepbx.conf
Generating AMP configs…OK
PHP Notice: Undefined index: FOPRUN in /usr/src/freepbx-2.9.0/install_amp on line 1166
Checking dashboard… dependencies pending
Checking core… dependencies pending
Checking framework… dependencies pending
Checking fw_ari… dependencies pending
Checking customappsreg… dependencies pending
Checking voicemail… dependencies pending
Checking featurecodeadmin… dependencies pending
Checking music… dependencies pending
Checking fw_fop… dependencies pending
Checking recordings… dependencies pending
Checking infoservices… dependencies pending
Checking dashboard… [FATAL] DB Error: connect failed
Trace Back:
/var/www/html/admin/common/db_connect.php:63 die_freepbx()
[0]: DB Error: connect failed
/var/www/html/admin/bootstrap.php:75 require_once()
[0]: /var/www/html/admin/common/db_connect.php
/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php
/var/lib/asterisk/bin/module_admin:23 include_once()
[0]: /etc/freepbx.conf
[FATAL] DB Error: connect failed
Trace Back: this repeats over and over…
seems because the manager and changes have not been applied it fails
is there a way I can fix this is this a bug?
let me know if you need to see anything.