我正在尝试在一个清晰的Ubuntu 14.04.2 LTS服务器上安装带有FreePBX 12.0.7的Asterisk 13。但是我在安装FreePBX时遇到了麻烦。 我尝试在清除Ubuntu上重新安装它大约5次,但我遇到了同样的问题。
在bash中运行命令时:
./install_amp --installdb --username=asteriskuser --password=${ASTERISK_DB_PW}
检查cdr后,我收到很多php警告/ noitices,如:
PHP注意:未定义索引:已修改 第974行/var/www/admin/libraries/BMO/Freepbx_conf.class.php
详情:
Checking cdr.. updated to 12.0.21
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
..OK
Setting freepbx settings form /etc/amportal.conf
freepbx setting [AMPDBHOST] DOES NOT EXIST, can't set to [localhost]
freepbx setting [AMPDBENGINE] DOES NOT EXIST, can't set to [mysql]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPENGINE] set to [asterisk]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPMGRUSER] set to [amiadmin]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPMGRPASS] set to [dK839sqA41]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPBIN] set to [/var/lib/asterisk/bin]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPSBIN] set to [/usr/local/sbin]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPWEBROOT] set to [/var/www]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPCGIBIN] set to [/var/www/cgi-bin ]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [FOPWEBROOT] set to [/var/www/html/panel]
freepbx setting [FOPPASSWORD] DOES NOT EXIST, can't set to [passw0rd]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AUTHTYPE] set to [database]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPEXTENSIONS] set to [extensions]
freepbx setting [AMPDBUSER] DOES NOT EXIST, can't set to [asteriskuser]
freepbx setting [AMPDBPASS] DOES NOT EXIST, can't set to [xxwDaUN5njRL0EDMu]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [AMPWEBADDRESS] set to [192.168.1.1]
freepbx setting [AMPDBNAME] DOES NOT EXIST, can't set to [asterisk]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [ASTETCDIR] set to [/etc/asterisk]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [ASTMODDIR] set to [/usr/lib/asterisk/modules]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [ASTVARLIBDIR] set to [/var/lib/asterisk]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [ASTAGIDIR] set to [/var/lib/asterisk/agi-bin]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [ASTSPOOLDIR] set to [/var/spool/asterisk]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [ASTRUNDIR] set to [/var/run/asterisk]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [ASTLOGDIR] set to [/var/log/asterisk]
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
PHP Notice: Undefined index: modified in /var/www/admin/libraries/BMO/Freepbx_conf.class.php on line 974
freepbx setting [FPBXDBUGFILE] set to [/var/log/asterisk/freepbx_debug]
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
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
Checking for PEAR Console::Getopt..OK
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
Running module install.php and install.sql scripts
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
Skipping extension and destination registry checks
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
no crontab for asterisk
no crontab for asterisk
Please update your modules and reload Asterisk by visiting http://192.168.1.1/admin
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in /var/www/admin/libraries/utility.functions.php on line 112
另外,最重要的是,我收到此错误
Untaring..Done
Module ucp successfully downloaded
Refreshing all UCP Assets, this could take a while...
PHP Fatal error: Cannot redeclare class UCP\UCP in /var/www/admin/modules/ucp/htdocs/includes/UCP.class.php on line 217
跑步时:
amportal a ma installall
答案 0 :(得分:1)
解决了,问题出在freepbx脚本中。我使用的版本是freepbx12.0.70.tgz,所以我下载了freepbx12.0.3.tgz,它解决了我的问题,也自动更新到12.0.71版本。