ubuntu freepbx-2.11.0.40安装
来源:互联网 发布:vector 数据是否连续 编辑:程序博客网 时间:2024/05/16 14:55
关于freepbx的安装,我不想说什么了,网上那些盗版的就是垃圾,还是看官方的吧,害的我搞了一天都不知道问题出在哪里了。搞到最后我也不知道我错在哪里,可能是权限问题吧,也有可能是别的原因。Asterisk安装应该没什么问题,我安装过不至三次了,但这次安装时,在./configure的时候人为的忽略了一个警告,以为无关大局,结果搞了一天,是我的失误。关于php,apache和mysql,直接安装那个集成工具就行了,不用下载,直接tasksel,然后选择安装LAMP就可以了。
最后按照官网方法很顺利:
http://wiki.freepbx.org/pages/viewpage.action?pageId=1409028#InstallingFreePBXonUbuntu12.04Server%28PrecisePangolin%29-AfewsmallmodificationstoApache.
我还是把官网内容复制过来好了:
Initial System Setup
Configure your root password.
sudo passwd root
Switch to the Root User
sudo -i
Update Your System
apt-get update && sudo apt-get upgrade -y
Install Required Dependencies
apt-get install -y build-essential linux-headers-`uname -r` openssh-server apache2 mysql-server mysql-client bison flex php5 php5-curl php5-cli php5-mysql php-pear php-db php5-gd curl sox libncurses5-dev libssl-dev libmysqlclient15-dev mpg123 libxml2-dev libnewt-dev sqlite3 libsqlite3-dev pkg-config automake libtool autoconf git subversion uuid uuid-dev
Install PearDB
pear uninstall db
pear install db-1.7.14
Icon
You may receive a warning:
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
At this time it is safe to ignore that message
Reboot server
reboot
Install Dependencies for Google Voice
Install iksemel
cd /usr/src
wget https://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
tar xf iksemel-1.4.tar.gz
cd iksemel-*
./configure
make
make install
Install and Configure Asterisk
Download Asterisk source files.
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
Compile and install DAHDI.
cd /usr/src
tar xvfz dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-*
make all
make install
make config
Compile and install LIBPRI.
cd /usr/src
tar xvfz libpri-1.4-current.tar.gz
cd libpri-*
make
make install
Compile and install Asterisk
cd /usr/src
tar xvfz asterisk-11-current.tar.gz
cd asterisk-*
./configure
contrib/scripts/get_mp3_source.sh
make menuselect
make
make install
make config
Install Asterisk-Extra-Sounds
cd /var/lib/asterisk/sounds
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-gsm-current.tar.gz
tar xfz asterisk-extra-sounds-en-gsm-current.tar.gz
rm asterisk-extra-sounds-en-gsm-current.tar.gz
Install and Configure FreePBX
Download and extract FreePBX.
export VER_FREEPBX=2.11
cd /usr/src
git clone http://git.freepbx.org/scm/freepbx/framework.git freepbx
cd freepbx
git checkout release/${VER_FREEPBX}
Now create the Asterisk user and set ownershippermissions.
adduser asterisk --disabled-password --gecos "Asterisk User"
chown asterisk. /var/run/asterisk
chown -R asterisk. /etc/asterisk
chown -R asterisk. /var/{lib,log,spool}/asterisk
chown -R asterisk. /usr/lib/asterisk
mkdir /var/www/html
chown -R asterisk. /var/www/
A few small modifications to Apache.
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php5/apache2/php.ini
cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_orig
sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/apache2/apache2.conf
service apache2 restart
Configure Asterisk database in MYSQL.
export ASTERISK_DB_PW=amp109
mysqladmin -u root create asterisk -p
mysqladmin -u root create asteriskcdrdb -p
mysql -u root asterisk -p < SQL/newinstall.sql
mysql -u root asteriskcdrdb -p < SQL/cdr_mysql_table.sql
Set permissions on MYSQL database.
mysql -u root -p -e "GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';"
mysql -u root -p -e "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';"
mysql -u root -p -e "flush privileges;"
Restart Asterisk and install FreePBX.
./start_asterisk start
./install_amp --webroot /var/www
amportal a ma installall
amportal a reload
Icon
** If “. /install_amp” fails to run correctly, in terminal type:
./install_amp --username=asteriskuser --password=$ASTERISK_DB_PW --webroot /var/www
Finally, one last mod and start FreePBX.
ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3
amportal start
Start FreePBX
Navigate:
http://yourlocalipaddress/html or if you prefer http://localhost/admin
Icon
After you enable and update the modules in FreePBX You might see thefollowing error.
Symlink from modules failed
To correct this error do the following:
Delete the list of failed files
cd /etc/asterisk
rm ccss.conf confbridge.conf features.conf sip.conf iax.conf logger.conf extensions.conf sip_notify.conf
Then on the FreePBX webUI go to the ‘Module Admin’ and uninstall andreinstall the ‘Camp On’ module. This should resolve the Symlink issue.
- ubuntu freepbx-2.11.0.40安装
- freePBX安装
- Ubuntu 上安装Asterisk, FreePBX 构建自己的电话局
- 一步一步安装asterisk freepbx
- freepbx
- freepbx 安装配置教程 for CentOS 5.1
- freepbx 安装配置教程 for CentOS
- freePBX使用及安装过程中的常见问题
- CentOS 5.8 asterisk-1.8.10.1 安装之二:安装freepbx
- freepbx 安装配置教程 for CentOS 5.1 /5.2
- CentOs(linux)中asterisk基础上安装freepbx
- Asterisk呼叫中心之freepbx安装(五)
- centos5.2安装asterisk+FreePBX电话管理系统+IAXmodem+Hylafax+Avantfax传真服务器
- freepbx模块开发 FreePbx API:modules
- Asterisk + FreePBX + A2Billing汉化
- freepbx 模块开发 [翻译]
- FreePBX密码配置
- freepbx 怎么汉化?
- ListView动态加载数据
- iframe子页面获取父页面对象
- 做到了.你就成熟了
- 从题主和我这样的互联网创业者眼中看是什么?
- 海伦公式也可以判断三角形
- ubuntu freepbx-2.11.0.40安装
- 查找机器慢的原因
- log4j.properties配置详解
- COCOS2D - JS 之JSON 解析
- android TextView setSingleLinexia显示问题
- 商标授权确权案呈现“三高”特点
- ios 音频播放循环次数(numberofloops)
- spring autowire mode
- Android 蓝牙知识