Новости
Обзоры и тесты
Техно
Советы
Разное
Главная » Техно

Установка Asterisk + FreePBX в CentOS

Добавлено на 08.06.2010 – 20:24

image В данной заметке приводится описание быстрого и легкого способа установки платформы IP телефонии Asterisk с графическим Веб-интерфейсом FreePBX при помощи Yum из репозиториев. Способ самый простой.

Итак, Вы установили CentOS, теперь необходимо добавить репозитории Asterisk и Digium, так как это описано в данной статье: Ссылка

Кроме того я добавил репозиторий RPMForge:

cd /etc/yum.repos.d/

> rpmforge.repo

Вставить в только что созданный файл строки:

#Name: RPMforge RPM Repository for Red Hat Enterprise 5 — dag
[rpmforge]
name = Red Hat Enterprise $releasever — RPMforge.net — dag
#baseurl =
http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist =
http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 0

Далее необходимо установить пакеты, которые использует Asterisk и FreePBX

yum install httpd mysql-server php php-mysql php-pear gcc php php-common

Отлично теперь можно приступать к установке Asterisk и FreePBX:

Дадим команду  yum install freepbx.

Yum найдет зависимости и предложит нам установить Asterisk  и необходимые пакеты, например вот так:

[root@localhost ~]# yum install freepbx
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.chg.ru
* base: ftp.chg.ru
* extras: ftp.chg.ru
* rpmforge: ftp-stud.fht-esslingen.de
* updates: ftp.chg.ru
rpmforge                                                                                              | 1.1 kB     00:00
Setting up Install Process
Resolving Dependencies
—> Running transaction check
—> Package freepbx.i386 0:2.7.0-5_centos5 set to be updated
—> Processing Dependency: php for package: freepbx
—> Processing Dependency: php-pear-DB for package: freepbx
—> Processing Dependency: php-gd for package: freepbx
—> Processing Dependency: php-mysql for package: freepbx
—> Running transaction check
—> Package php.i386 0:5.1.6-27.el5 set to be updated
—> Processing Dependency: php-cli = 5.1.6-27.el5 for package: php
—> Processing Dependency: php-common = 5.1.6-27.el5 for package: php
—> Package php-gd.i386 0:5.1.6-27.el5 set to be updated
—> Package php-mysql.i386 0:5.1.6-27.el5 set to be updated
—> Processing Dependency: php-pdo for package: php-mysql
—> Package php-pear-db.noarch 0:1.7.13-2.el5.rf set to be updated
—> Processing Dependency: /usr/bin/pear for package: php-pear-db
—> Processing Dependency: php-pear for package: php-pear-db
—> Running transaction check
—> Package php-cli.i386 0:5.1.6-27.el5 set to be updated
—> Package php-common.i386 0:5.1.6-27.el5 set to be updated
—> Package php-pdo.i386 0:5.1.6-27.el5 set to be updated
—> Package php-pear.noarch 1:1.4.9-6.el5 set to be updated
—> Processing Dependency: php-devel for package: php-pear
—> Running transaction check
—> Package php-devel.i386 0:5.1.6-27.el5 set to be updated
—> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
Package                     Arch                   Version                           Repository                        Size
=============================================================================================================================
Installing:
freepbx                     i386                   2.7.0-5_centos5                   asterisk-current                 6.1 M
Installing for dependencies:
php                         i386                   5.1.6-27.el5                      base                             2.3 M
php-cli                     i386                   5.1.6-27.el5                      base                             2.1 M
php-common                  i386                   5.1.6-27.el5                      base                             152 k
php-devel                   i386                   5.1.6-27.el5                      base                             503 k
php-gd                      i386                   5.1.6-27.el5                      base                             117 k
php-mysql                   i386                   5.1.6-27.el5                      base                              86 k
php-pdo                     i386                   5.1.6-27.el5                      base                              65 k
php-pear                    noarch                 1:1.4.9-6.el5                     base                             344 k
php-pear-db                 noarch                 1.7.13-2.el5.rf                   rpmforge                         139 k

Transaction Summary
=============================================================================================================================
Install     10 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total size: 12 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : php-common                                                                                           1/10
Installing     : php-cli                                                                                              2/10
Installing     : php                                                                                                  3/10
Installing     : php-gd                                                                                               4/10
Installing     : php-pdo                                                                                              5/10
Installing     : php-devel                                                                                            6/10
Installing     : php-mysql                                                                                            7/10
Installing     : php-pear                                                                                             8/10
Installing     : php-pear-db                                                                                          9/10
Installing     : freepbx                                                                                             10/10

В rpm пакет FreePBX входят скрипты которые выполнят все необходимые действия для успешной устаноки FreePBX:
Копируют и наструю файлы конфигурации Asterisk для работы с FreePBX и mySQL,  создадут базы данных mySQL, копируют файлы FreePBX на Веб-сервер  установит права доступа к файлам и т.д.

Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]
Starting mysqld:  [  OK  ]
Setting AMPASTERISKWEBUSER option in /etc/amportal.conf
Setting AMPASTERISKWEBGROUP option in /etc/amportal.conf

STARTING ASTERISK
Asterisk Started
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking user..OK
Checking if Asterisk is running..running with PID: 4309..OK
Checking for /etc/amportal.conf..OK
Reading /etc/amportal.conf..OK
Checking for /etc/asterisk/asterisk.conf../etc/asterisk/asterisk.conf does not exist, copying default
OK
Reading /etc/asterisk/asterisk.conf..OK
Using asterisk as PBX Engine
Checking for Asterisk version..1.6.2.7
Connecting to database..OK
Checking current version of AMP..2.2.0beta3
Installing new FreePBX files..OK (663 files copied, 0 skipped)
Configuring install for your environment..amportal..fpbx..freepbx_engine..done
apply username/password changes to conf files..sed: can’t read /etc/asterisk/cdr_odbc.conf: No such file or directory
sed: can’t read /etc/asterisk/cdr_odbc.conf: No such file or directory
done
creating missing #include files..OK
No such command ‘reload manager’ (type ‘core show help reload manager’ for other possible commands)
OK
Setting permissions on files..OK
Checking for upgrades..29 found
Upgrading to 2.2.0rc2..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.2.0rc2/fix_logo.php
Upgrading to 2.2.0rc2..OK
Upgrading to 2.2.3..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.2.3/tables.php
Alter tables sip, iax, zap to increase field length.. Altered
Creating module_xml table..Not Required
Adding id to module_xml table..Not Required
Upgrading to 2.2.3..OK
Upgrading to 2.3.0beta1..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.3.0beta1/core_migrate.php
Renaming core files in: /var/lib/asterisk/agi-bin
dialparties.agi..(no action needed)
directory..(no action needed)
enumlookup.agi..(no action needed)
fixlocalprefix..(no action needed)
list-item-remove.php..(no action needed)
recordingcheck..(no action needed)
Finished processing core files from: /var/lib/asterisk/agi-bin
Renaming core files in: /var/lib/asterisk/bin
fax-process.pl..(no action needed)
Finished processing core files from: /var/lib/asterisk/bin
Renaming core files in: /etc/asterisk
extensions.conf..(no action needed)
iax.conf..(no action needed)
sip.conf..(no action needed)
Finished processing core files from: /etc/asterisk
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.3.0beta1/callback.php
Cleaning up leftover callback script that was distributed in core…
callback…Not Required
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.3.0beta1/tables.php
Upgrading Inbound Routing to allow for Music on Hold per DID..Not Required
Upgrading Inbound Routing to provide a description field..Not Required
Upgrading Inbound Routing to provide a CID Prefix field..Not Required
Upgrading Users/Extension Table to allow for Music on Hold per Direct DID..Done
Not Required
Checking for Global var VMX_CONTEXT..Already exists!
Checking for Global var VMX_PRI..Already exists!
Checking for Global var VMX_TIMEDEST_CONTEXT..Already exists!
Checking for Global var VMX_TIMEDEST_EXT..Already exists!
Checking for Global var VMX_TIMEDEST_PRI..Already exists!
Checking for Global var VMX_LOOPDEST_CONTEXT..Already exists!
Checking for Global var VMX_LOOPDEST_EXT..Already exists!
Checking for Global var VMX_LOOPDEST_PRI..Already exists!
Checking for Global var VMX_OPTS_TIMEOUT..Already exists!
Checking for Global var VMX_OPTS_LOOP..Already exists!
Checking for Global var VMX_OPTS_DOVM..Already exists!
Checking for Global var VMX_TIMEOUT..Already exists!
Checking for Global var VMX_REPEAT..Already exists!
Checking for Global var VMX_LOOPS..Already exists!
Checking for Global var TRANSFER_CONTEXT..Already exists!
Alter tables incoming to increase field length.. Altered
Merging findmefollow and core extension destinations for incoming routes..Done
Upgrading to 2.3.0beta1..OK
Upgrading to 2.3.0beta2..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.3.0beta2/tables.php
converting voicemail destinations in core module..Done
converting voicemail destinations in announcement module..no announcement table
converting voicemail destinations in callback module..no callback table
converting voicemail destinations in findmefollow module..no findmefollow table
converting voicemail destinations in miscapp module..no ivr_dests table
converting voicemail destinations in miscapp module..no miscapp table
converting voicemail destinations in queues module..no parkinglot table
converting voicemail destinations in queues module..Done
converting voicemail destinations in ringgroups module..no ringgroups table
converting voicemail destinations in timeconditions module..no timeconditions table
converting voicemail destinations in daynight module..no daynight table
creating notifications table..Done
Upgrading notifications table to add candelete..Not Required
creating cronmanager table..Done
enabling online update checking..Done
Upgrading to 2.3.0beta2..OK
Upgrading to 2.3.0rc1..
Upgrading to 2.3.0rc1..OK
Upgrading to 2.3.0..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.3.0/removefiles.php
Cleaning up deprecated or moved files:
Checking /var/www/html/recordings/modules/help.module..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/recordings/modules/help.module..Not Required
Checking /var/www/html/admin/bounce_op.sh..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/bounce_op.sh..Not Required
Checking /var/www/html/admin/logout.php..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/logout.php..Not Required
Checking /var/www/html/admin/footer.php..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/footer.php..Not Required
Checking /var/www/html/admin/images/background-grid.png..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/images/background-grid.png..Not Required
Checking /var/www/html/admin/images/background-triangle.png..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/images/background-triangle.png..Not Required
Checking /var/www/html/admin/common/jquery.js..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.js..Not Required
Checking /var/www/html/admin/common/jquery.tabs.js..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.tabs.js..Not Required
Checking /var/www/html/admin/common/freepbx.css..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/freepbx.css..Not Required
Checking /var/www/html/admin/common/jquery.interface.js..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.interface.js..Not Required
Checking /var/www/html/admin/common/jquery.tabs.css..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.tabs.css..Not Required
Checking /var/lib/asterisk/bin/retrieve_queues_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_queues_conf_from_mysql.pl..Not Required
Checking /var/lib/asterisk/bin/retrieve_zap_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_zap_conf_from_mysql.pl..Not Required
Checking /var/lib/asterisk/bin/retrieve_sip_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_sip_conf_from_mysql.pl..Not Required
Checking /var/lib/asterisk/bin/retrieve_iax_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_iax_conf_from_mysql.pl..Not Required
Upgrading to 2.3.0..OK
Upgrading to 2.3.1..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.3.1/removefiles.php
Cleaning up deprecated or moved files:
Checking /var/www/html/recordings/modules/help.module..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/recordings/modules/help.module..Not Required
Checking /var/www/html/admin/bounce_op.sh..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/bounce_op.sh..Not Required
Checking /var/www/html/admin/logout.php..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/logout.php..Not Required
Checking /var/www/html/admin/footer.php..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/footer.php..Not Required
Checking /var/www/html/admin/images/background-grid.png..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/images/background-grid.png..Not Required
Checking /var/www/html/admin/images/background-triangle.png..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/images/background-triangle.png..Not Required
Checking /var/www/html/admin/common/jquery.js..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.js..Not Required
Checking /var/www/html/admin/common/jquery.tabs.js..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.tabs.js..Not Required
Checking /var/www/html/admin/common/freepbx.css..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/freepbx.css..Not Required
Checking /var/www/html/admin/common/jquery.interface.js..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.interface.js..Not Required
Checking /var/www/html/admin/common/jquery.tabs.css..Not Required
Checking /var/www/html/admin/modules/framework/htdocs/admin/common/jquery.tabs.css..Not Required
Checking /var/lib/asterisk/bin/retrieve_queues_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_queues_conf_from_mysql.pl..Not Required
Checking /var/lib/asterisk/bin/retrieve_zap_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_zap_conf_from_mysql.pl..Not Required
Checking /var/lib/asterisk/bin/retrieve_sip_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_sip_conf_from_mysql.pl..Not Required
Checking /var/lib/asterisk/bin/retrieve_iax_conf_from_mysql.pl..Not Required
Checking /var/www/html/admin/modules/framework/bin/retrieve_iax_conf_from_mysql.pl..Not Required
Upgrading to 2.3.1..OK
Upgrading to 2.4.0alpha1..
Upgrading to 2.4.0alpha1..OK
Upgrading to 2.4.0beta1..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.4.0beta1/tables.php
Trying to create zapchandids table..already exists, no conversion will be done
Converting ampusers sections table from varchar 255 to blob to handle large numbers of modules..OK
Upgrading to 2.4.0beta1..OK
Upgrading to 2.4.0beta2..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.4.0beta2/core_migrate.php
Renaming core files in: /etc/asterisk
features.conf..(no action needed)
Finished processing core files from: /etc/asterisk
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.4.0beta2/tables.php
Converting module_xml data field to MEDIUMBLOB..OK
Upgrading to 2.4.0beta2..OK
Upgrading to 2.4.0rc1..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.4.0rc1/core_migrate.php
Renaming core files in: /etc/asterisk
features.conf..(no action needed)
Finished processing core files from: /etc/asterisk
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.4.0rc1/tables.php
Converting module_xml data field to MEDIUMBLOB..OK
Upgrading to 2.4.0rc1..OK
Upgrading to 2.4.0..
Upgrading to 2.4.0..OK
Upgrading to 2.5.0alpha1..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.5.0alpha1/tables.php
Checking for Global var MIXMON_FORMAT..Already exists!
Checking for Global var MIXMON_DIR..Already exists!
Checking for Global var MIXMON_POST..Already exists!
Upgrading to 2.5.0alpha1..OK
Upgrading to 2.5.0beta1..
Upgrading to 2.5.0beta1..OK
Upgrading to 2.5.0rc1..
Upgrading to 2.5.0rc1..OK
Upgrading to 2.5.0rc2..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.5.0rc2/tables.php
Alter table globals to increase field lengths.. Altered
Upgrading to 2.5.0rc2..OK
Upgrading to 2.5.0rc3..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.5.0rc3/removefiles.php
Cleaning up deprecated or moved files:
Checking /var/www/html/recordings/includes/zh_TW..Not Required
Upgrading to 2.5.0rc3..OK
Upgrading to 2.5.0..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.5.0/removefiles.php
Cleaning up deprecated or moved files:
Checking /var/www/html/admin/cdr/css..Not Required
Checking /var/www/html/admin/cdr/encrypt.js..Not Required
Checking /var/www/html/admin/cdr/graph_hourdetail.php..Not Required
Checking /var/www/html/admin/cdr/graph_pie.php..Not Required
Checking /var/www/html/admin/cdr/graph_stat.php..Not Required
Checking /var/www/html/admin/cdr/graph_statbar.php..Not Required
Checking /var/www/html/admin/cdr/images/print.css..Not Required
Upgrading to 2.5.0..OK
Upgrading to 2.5.1..
Upgrading to 2.5.1..OK
Upgrading to 2.5.2..
Upgrading to 2.5.2..OK
Upgrading to 2.6.0alpha1..
Upgrading to 2.6.0alpha1..OK
Upgrading to 2.6.0beta1..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php
Checking for sha1 passwords..Updating database..Done.
Updating passwords..
(1 accounts) Done.
Removing old password column..Done.
Checking if trunk table migration required..PHP Notice:  Undefined index:  OUTCID_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 244
PHP Notice:  Undefined index:  OUTKEEPCID_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 245
PHP Notice:  Undefined index:  OUTMAXCHANS_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 246
PHP Notice:  Undefined index:  OUTFAIL_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 247
PHP Notice:  Undefined index:  OUTPREFIX_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 248
PHP Notice:  Undefined index:  OUTCID_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 259
PHP Notice:  Undefined index:  OUTKEEPCID_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 260
PHP Notice:  Undefined index:  OUTMAXCHANS_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 261
PHP Notice:  Undefined index:  OUTFAIL_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 262
PHP Notice:  Undefined index:  OUTPREFIX_1 in /usr/src/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 263
migrating..removing globals..done
Checking if trunks_dialpatterns table exists..created
loading table from localprefixes.conf..loaded
Upgrading to 2.6.0beta1..OK
Upgrading to 2.6.0beta2..
Upgrading to 2.6.0beta2..OK
Upgrading to 2.6.0RC1..
Upgrading to 2.6.0RC1..OK
Upgrading to 2.6.0RC2..
Upgrading to 2.6.0RC2..OK
Upgrading to 2.6.0..
Upgrading to 2.6.0..OK
Upgrading to 2.7.0beta1..
-> Running PHP script /usr/src/freepbx-2.7.0/upgrades/2.7.0beta1/tables.php
Alter table incomming to increase extension lengths.. Altered
Upgrading to 2.7.0beta1..OK
Upgrading to 2.7.0RC1..
Upgrading to 2.7.0RC1..OK
Upgrading to 2.7.0..
Upgrading to 2.7.0..OK
Checking core.. updated to 2.7.0.0
Checking recordings.. updated to 3.3.9.4
Checking featurecodeadmin.. updated to 2.7.0.0
Checking infoservices.. updated to 2.7.0.0
Checking framework.. updated to 2.7.0.0
Checking music.. updated to 2.7.0.1
Checking voicemail.. updated to 2.7.0.0
Checking dashboard.. updated to 2.7.0.1
Checking customappsreg.. updated to 2.7.0.0
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
This account is currently not available.
Generating AMP configs..OK
Restarting Flash Operator Panel..OK
Checking core..
Checking if directdids need migrating..already done
updating zap callgroup, pickupgroup..not needed
checking for delay_answer field ..already exists
checking for pricid field ..added
Checking for Global var RECORDING_STATE..Created
Checking if trunk table migration required..not needed
Checking if trunks_dialpatterns table exists..already exists
Checking if privacy manager options exists..Added pmmaxretries and pmminlength
Module core successfully installed

Module core successfully enabled
installed
Checking recordings..
checking for fcode field..OK
checking for fcode_pass field..OK
Module recordings successfully installed

Module recordings successfully enabled
installed
Checking featurecodeadmin..
Module featurecodeadmin successfully installed

Module featurecodeadmin successfully enabled
installed
Checking infoservices..
Module infoservices successfully installed

Module infoservices successfully enabled
installed
Checking framework..
Module framework successfully enabled
enabled
Checking music..
PHP Warning:  mkdir(): No such file or directory in /var/www/html/admin/modules/music/install.php on line 20
PHP Warning:  touch(): Unable to create file /var/lib/asterisk/moh/.nomusic_reserved/silence.wav because No such file or directory in /var/www/html/admin/modules/music/install.php on line 22

Module music successfully installed

Module music successfully enabled
installed
Checking voicemail..
Module voicemail successfully installed

Module voicemail successfully enabled
installed
Checking dashboard..
Module dashboard successfully installed

Module dashboard successfully enabled
installed
Checking customappsreg..
Module customappsreg successfully installed

Module customappsreg successfully enabled
installed
Please update your modules and reload Asterisk by browsing to your server.

*************************************************************************
* Note: It’s possible that if you click the red ‘Update Now’ bar BEFORE *
* updating your modules, your machine will start dropping calls. Ensure *
* that all modules are up to date BEFORE YOU CLICK THE RED BAR. As long *
* as this is observed, your machine will be fully functional whilst the *
* upgrade is in progress.                                               *
*************************************************************************

SETTING FILE PERMISSIONS
Permissions OK

STARTING ASTERISK
Asterisk is already running

STARTING FOP SERVER
FOP Server Started

PHP Notice:  Undefined index:  astlogdir in /var/www/html/admin/functions.inc.php on line 1569
Successfully reloaded
odbcinst: Driver installed. Usage count increased to 1.
Target directory is /etc

Installed:
freepbx.i386 0:2.7.0-5_centos5

Dependency Installed:
php.i386 0:5.1.6-27.el5                php-cli.i386 0:5.1.6-27.el5            php-common.i386 0:5.1.6-27.el5
php-devel.i386 0:5.1.6-27.el5          php-gd.i386 0:5.1.6-27.el5             php-mysql.i386 0:5.1.6-27.el5
php-pdo.i386 0:5.1.6-27.el5            php-pear.noarch 1:1.4.9-6.el5          php-pear-db.noarch 0:1.7.13-2.el5.rf

Complete!

Теперь asterisk и freepbx установлены и готовы к работе,
в браузере введите адрес(в примере адрес сервера 192.168.1.246):
http://192.168.1.246/html/

и вы попадете портал конфигрурирования Freepbx

если вы хотите исползовать отличный путь для web-файлов изменить логины и пароли, отредактируйте файл /etc/amportal.conf

Например, я хочу поменять путь для файлов freepbx на веб-сервере, необходимо заменить соответстующую строку:
AMPWEBROOT=/var/www/html

на  AMPWEBROOT=/var/www/freepbx

и

FOPWEBROOT=/var/www/html/panel

на FOPWEBROOT=/var/www/freepbx/panel

создаю директорию var/www/freepbx и перемещаю все файлы из /var/www/html

После любых изменений в файле

нужно выполнять скрипт:

apply_conf.sh
у меня он лежит здесь:
/usr/src/freepbx-2.7.0/apply_conf.sh

Теперь при открытии ссыкли http://192.168.1.246/freepbx Вы попадете в портал FreePBX

Стандартный логин и пароль adminadmin
Для управления FOP: passwOrd

Настоятельно рекомендую сразу же обновить все модули freepbx через меню Tools –>Module Admin –> Download All, но все же советую выбрать нужные модули, а не ставить все подряд.

Документацию для  дополнительных модулей можно найти по ссылке: http://www.freepbx.org/support/documentation/module-documentation

Скачать релизы модулей для различных версий Freepbx: http://www.freepbx.org/trac/browser/modules/release

Tags: , ,

Комментарии:

Оставить комментарий

Напишите Ваш комментарий ниже. Также Вы можете подписаться на комментарии к материалу через RSS

Вы можете использовать следующие теги:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

Мы поддерживаем Gravatar.

Контроль спама: * Лимит времени истёк. Пожалуйста, перезагрузите CAPTCHA.