Install Elastix 4 on CentOS(VPS)

    內容表格
    1. 1. 系統環境
    2. 2. 安裝開始

    版本為 09:33, 3 Oct 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    系統環境

    • Cloud At Cost
    • CentOS 7.0 (3.10.0-123.el7.x86_64)
    • Elastix 4.0.74-Stable

    Elastix4.png

    安裝開始

    #> wget --no-check-certificate https://sourceforge.net/projects/elastix/files/Elastix%20PBX%20Appliance%20Software/4.0.0/Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso/download -O Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso
    #> mkdir /mnt/ISO
    #> mount -o loop Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso /mnt/ISO/
    
    

    關閉 SELinux

    #> sed -i 's/SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config
    #> setenforce 0
    #> vi /etc/yum.repos.d/Elastix-cd.repo
    
    [elastix-cd]
    name=Elastix RPM Repository for CentOS
    baseurl=file:///mnt/ISO
    gpgcheck=0
    enabled=1
    

    安裝 EPEL 套件庫

    #> wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    #> rpm -ivh epel-release-latest-7.noarch.rpm
    

    安裝 ISO 檔內的 kernel-* 套件
    NOTE:

    CentOS 版本必須低於 ISO 檔內的版本,否則無法安裝 kernel 套件。

    安裝後重新開機,CentOS 必須使用安裝後的 kernel 開機。

    #> cd /mnt/ISO/Elastix
    #> yum --nogpgcheck --disablerepo=\* --enablerepo=epel,elastix-cd localinstall kernel-3.10.0-229.14.1.el7.x86_64.rpm kernel-devel-3.10.0-229.14.1.el7.x86_64.rpm
    
    #> reboot
    

    安裝 RPM 檔

    #> mount -o loop Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso /mnt/ISO/
    #> sed -n '/%packages/,/%end/p' /mnt/ISO/ks/anaconda-ks.cfg | sed '/^%/d' > elastix4-packages.lst
    
    #> yum -y --nogpgcheck --disablerepo=\* --enablerepo=epel,elastix-cd install $(cat elastix4-packages.lst | grep -v "^elastix\|RoundCubeMail\|freePBX\|lcdelastix\|wanpipe\|dahdi\|rhino" ) | tee yum-install-1st.log
    
    #> systemctl start mariadb
    #> mysqladmin -u root -p password 'eLaStIx.2oo7'
    
    #> yum -y --nogpgcheck --disablerepo=\* --enablerepo=epel,elastix-cd install $(cat elastix4-packages.lst | grep "^elastix\|RoundCubeMail\|freePBX\|lcdelastix" ) | tee yum-install-2nd.log
    
    #> systemctl enable mariadb
    #> systemctl enable httpd
    
    #> reboot
    
    #> /usr/bin/elastix-admin-passwords --init
    
    #> reboot

    注意事項:

    - elastix4-packages.lst,這是利用安裝ISO檔內的 ks.cfg 篩選出需要安裝的套件清單。

    - 所有套件必須分兩次安裝,不然會安裝失敗。先安裝 elastix-*、freePBX 以外的套件。

    - elastix-admin-passwords 第一次啟動時必須執行一次這指令,用來設定 MySQL 與網頁管理的密碼。

    Powered by MindTouch Core