Reply To: RE: Check for Updates Exception

    InTeleSync
    Participant
    Up
    0
    Down

    Here are notes from our AWS install to give you a starting point of where we’re at….

     

    VitalPBX 2.3.8-3 on AWS

    Launch Amazon Linux 2 64-bit

    Show current hostname: hostname (will be something like: ip-172-30-0-13.ec2.internal)
    Change the hostname: hostnamectl set-hostname –static vitalpbx.localdomain

    Edit /etc/hosts:
    127.0.0.1 vitalpbx.localdomain vitalpbx localhost4 localhost4.localdomain4

    Reboot

    yum update

    Set timezone:
    vi /etc/sysconfig/clock
    ZONE=”America/New_York”
    Then: ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

    Reboot

    The download script vps.sh contains much of the following. We’re granularly controlling it since not on a traditional VPS such as VMware or Citrix.

    # Clean Yum Cache
    yum clean all
    rm -rf /var/cache/yum

    Install the Amazon Linux 2 equivalent of epel-release:
    amazon-linux-extras install epel

    # Download the beta repo of VitalPBX
    cd /root
    rm -rf /etc/yum.repos.d/vitalpbx.repo
    wget -P /etc/yum.repos.d/ https://raw.githubusercontent.com/VitalPBX/VPS/master/resources/vitalpbx.repo

    # Intall other required dependencies
    yum install php (installs PHP 5.4.16-46 along with Apache 2.4.41-1)

    # Update the system & Clean Cache Again
    yum clean all
    rm -rf /var/cache/yum
    yum update

    systemctl enable httpd
    systemctl start httpd
    Browse to the instance to make sure all is well. ie: http://ec2-54-161-50-4.compute-1.amazonaws.com

    To validate PHP, create /var/www/html/phpinfo.php:
    <?php
    echo phpinfo();
    ?>
    Then: http://ec2-54-161-50-4.compute-1.amazonaws.com/phpinfo.php

    Set the proper PHP timezone:
    Edit /etc/php.ini:
    date.timezone = America/New_York
    systemctl restart httpd

    # Install MariaDB (MySQL). v5.5.64-1
    cd /root
    yum install mariadb-server
    systemctl enable mariadb
    rm -rf /etc/my.cnf.d/ombutel.cnf
    wget -P /etc/my.cnf.d/ https://raw.githubusercontent.com/VitalPBX/VPS/master/resources/ombutel.cnf
    systemctl start mariadb

    Reboot

    Install Prerequisites. This list is derived from https://raw.githubusercontent.com/VitalPBX/VPS/master/resources/pack_list. Most will already be installed.

    Not already installed:
    yum install avahi avahi-devel dnsmasq cyrus-sasl dos2unix gdb fail2ban lame libxml2-devel mc nss-mdns opus patch php-devel php-intl php-mysql php-pear php-pecl-imagick python-inotify telnet

    Skipped: hdparm, usbutils

    # Install VitalPBX
    mkdir -p /etc/ombutel
    mkdir -p /etc/asterisk/ombutel
    yum install vitalpbx dahdi-tools-doc fxload

    Copy the following to the CLI and hit enter:
    cat << EOF >> /etc/sysctl.d/10-ombutel.conf
    # Reboot machine automatically after 20 seconds if it kernel panics
    kernel.panic = 20
    EOF

    # Set permissions
    chown -R apache:root /etc/asterisk/ombutel

    # Restart httpd
    systemctl restart httpd

    # Start vpbx-setup.service
    systemctl start vpbx-setup.service

    # Enable the http access:
    firewall-cmd –add-service=http
    firewall-cmd –reload

    Other stuff needed:
    yum install NetworkManager
    systemctl enable NetworkManager

    # Install SSH Welcome Banner if desired
    # Appears the install already does this! So the below not needed.
    cd /root
    rm -rf /etc/profile.d/vitalwelcome.sh
    wget -P /etc/profile.d/ https://raw.githubusercontent.com/VitalPBX/VPS/master/resources/vitalwelcome.sh
    chmod 644 /etc/profile.d/vitalwelcome.sh

    Reboot

    http://ec2-54-161-50-4.compute-1.amazonaws.com

    Will set HTTPS and Let’s Encrypt after setup.

    References:
    Support: http://issues.vitalpbx.org/my_view_page.php
    https://vitalpbx.org/en/pbx-system-download/
    http://repo.telesoftsa.com/vitalpbx/manuals/VitalPBXReferenceGuideVer2EN.pdf
    https://sourceforge.net/projects/vitalpbx/
    https://github.com/VitalPBX/VPS/

    0