b8ed9cd4c072f9431c455a1eeb33e992.png
  • 安裝相關的套件
    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
  • 安裝 pear 的相關套件
    pear install Console_Getopt
  • 啟用 mariadb
    systemctl enable mariadb.service
    systemctl start mariadb
     
    設定密碼
    mysql_secure_installation
    
  • 啟用 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
    
  • 建立 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/
  • 安裝 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
  • 開啟防火牆
    firewall-cmd --zone=public --add-port=80/tcp --permanent
    firewall-cmd --reload
    接下來就是用瀏覽器連線囉!
  • 有時候權限突然亂了,該怎麼辦?
    執行下面這個指令修復一下!
    fwconsole chown
    
Facebook 討論區載入中...