1 必须装的工具包
yum install gcc gcc-c++ autoconf automake
yum install git autoconf automake libtool ncurses-devel libjpeg-devel
2 选装的工具包
yum install expat-devel openssl-devel libtiff-devel libX11-devel unixODBC-devel libssl-devel python-devel \
zlib-devel libzrtpcpp-devel alsa-lib-devel libogg-devel libvorbis-devel perl-libs gdbm-devel \
libdb-devel uuid-devel @development-tools
3 下载fs源代码 [如果出现无法更新问题,可能是网络或者DNS问题导致,查询域名地址,使用IP即可:198.22.64.222]
cd /usr/local/src
git clone git://git.freeswitch.org/freeswitch.git
cd freeswitch
./bootstrap.sh
4 编译fs
./configure
make
5 安装fs 到:/usr/local/freeswitch/
make && make install
make all install cd-sounds-install cd-moh-install
7 启动
cd /usr/local/freeswitch/bin ./freeswitch
8 添加freeswitch 到服务
cp /usr/local/src/freeswitch/build/freeswitch.init.redhat /etc/init.d/freeswitch
chmod 755 /etc/init.d/freeswitch
vim /etc/init.d/freeswitch
chkconfig --add freeswitch && chkconfig --levels 35 freeswitch on
二 搭建 PHP环境
1、 安装httpd服务
[root@localhost ~]# rpm -qa | grep httpd
[root@localhost ~]# yum install -y httpd
启动httpd服务
[root@localhost ~]# service httpd start
2、 安装PHP解释器:
[root@localhost ~]# rpm -qa | grep php
[root@localhost ~]# yum install -y php
php与mysql支持包
[root@localhost ~]# yum install -y php-mysql
3,编辑php配置文件:
[root@localhost ~]# vim /etc/httpd/conf.d/php.conf
增加拓展名为.php文件的处理关系
#
4、 安装MySQL数据库
[root@localhost ~]#yum install –y mysql*
[root@localhost ~]#rpm –qa | grep mysql
5,添加开机自启动服务:
chkconfig --level 35 mysqld on
启动MySQL数据库:
[root@localhost ~]# service mysqld start
修改密码:
[root@localhost ~]# mysqladmin -u root password 1234
PHP环境搭建完成!!!!!
三 安装 fusionpbx
1,安装svn客户端
【root@localhost ~]#yum install –y svn
2,下载fusionpbx[或者通过window下载]:
【root@localhost ~]#wget http://code.google.com/p/fusionpbx/downloads/detail?name=fusionpbx-3.3.tar.gz&can=2&q=
3,安装前准备:
登陆数据库
mysql -u root -p
连接上mysql之后,创建数据库
create database fusionpbx
\g
exit
4,安装fusionpbx
解压tar包 放到:/var/www/html/目录下
输入:http://your IP/ 即可!