Install FreePBX
  • 1,096 views,
  • 2017-06-03,
  • 上傳者: 洪國恩,
  •  0
b8ed9cd4c072f9431c455a1eeb33e992.png
步驟
A.
安裝相關的套件
yum -y install lynx mariadb-server mariadb php php-mysql php-mbstring tftp-server \
  httpd ncurses-devel sendmail sendmail-cf sox newt-devel libxml2-devel libtiff-devel \
  audiofile-devel gtk2-devel subversion kernel-devel git php-process crontabs cronie \
  cronie-anacron wget vim php-xml uuid-devel sqlite-devel net-tools gnutls-devel php-pear unixODBC mysql-connector-odbc
B.
安裝 pear 的相關套件
pear install Console_Getopt
C.
啟用 mariadb
systemctl enable mariadb.service
systemctl start mariadb
 
設定密碼
mysql_secure_installation
D.
啟用 apache
systemctl enable httpd.service
systemctl start httpd.service
設定 apache
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /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
systemctl restart httpd.service
E.
建立 Asterisk 使用者,並設定權限
adduser asterisk -M -c "Asterisk User"

chown asterisk. /var/run/asterisk
chown -R asterisk. /etc/asterisk
chown -R asterisk. /var/{lib,log,spool}/asterisk
chown -R asterisk. /usr/lib64/asterisk
chown -R asterisk. /var/www/
F.
安裝 FreePBX
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-13.0-latest.tgz
tar -zxvf freepbx-13.0-latest.tgz
cd freepbx
./start_asterisk start
./install -n
G.
開啟防火牆
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
接下來就是用瀏覽器連線囉!
Facebook 討論區載入中...
資料夾 :
發表時間 :
2017-06-03 21:27:12
觀看數 :
1,096
發表人 :
洪國恩
部門 :
老洪的 IT 學習系統
QR Code :