CentOS7安装FreePBX15
接上篇CentOS7下安装完Asterisk18后,使用FreePBX界面管理系统来管理Asterisk
安装Mariadb
cat > /etc/yum.repos.d/mariadb.repo << "EOF" [mariadb] name = MariaDB baseurl = https://mirrors.tuna.tsinghua.edu.cn/mariadb/yum/10.5/centos7-amd64 gpgkey=https://mirrors.tuna.tsinghua.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF yum list installed | grep mariadb yum remove mariadb-devel.x86_64 mariadb-libs.x86_64 mariadb-devel.x86_64 mariadb-server.x86_64 -y yum list --disablerepo=\* --enablerepo=mariadb yum install mariadb-server -y && rpm -qi MariaDB-server systemctl start mariadb && systemctl enable mariadb mysql_secure_installation
安装Nodejs
curl -fsSL https://rpm.nodesource.com/setup_10.x | bash - yum install nodejs -y npm install -g npm node -v rpm -qi nodejs
安装PHP
yum install epel-release -y rm -f /var/www/html/index.html systemctl start httpd && systemctl enable httpd && systemctl status httpd rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum remove php* yum install php56w php56w-pdo php56w-mysql php56w-cgi php56w-common php56w-curl php56w-gd php56w-mbstring php56w-pear php56w-process php56w-gettext php56w-xml php56w-opcache php56w-bcmath php56w-zip php56w-ldap php56w-intl php56w-json php56w-snmp php56w-soap -y pear install Console_Getopt cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf_bak sed -i 's/\(^upload_max_filesize = \).*/\10M/' /etc/php.ini sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/httpd/conf/httpd.conf sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf
安装FreePBX
cd /usr/src/ wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz tar xfz freepbx-15.0-latest.tgz cd freepbx ./start_asterisk start ./install -n --dbuser root --dbpass <MariaDBpassword> #如果安装出错执行 #npm cache clean --force #rm -rf /var/www/html/admin/ #rm -rf /etc/freepbx.conf #rm -rf /etc/amportal.conf systemctl restart httpd
配置FreePBX
浏览器打开服务器的ip
配置管理用户名、密码和邮箱
登陆
#解决缺少pm2模块
fwconsole ma downloadinstall pm2
#修复/var/www/html/admin/modules/framework/phpunit.xml missing
wget https://phar.phpunit.de/phpunit-5.7.9.phar
chmod +x phpunit-5.7.9.phar
mv phpunit-5.7.9.phar /usr/local/bin/phpunit
phpunit --version
其实折腾下来发现,最简单办法还是直接官方下载ISO版本,内置了Asterisk和FreePBX,经过测试安装eyeBeam软电话,通话测试正常
本站所有文章均可随意转载,转载时请保留原文链接及作者。