Reply To: RE: Check for Updates Exception


    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: vitalpbx.localdomain vitalpbx localhost4 localhost4.localdomain4


    yum update

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


    The download script 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/

    # 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:

    To validate PHP, create /var/www/html/phpinfo.php:
    echo phpinfo();

    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/
    systemctl start mariadb


    Install Prerequisites. This list is derived from 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

    # 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/
    wget -P /etc/profile.d/
    chmod 644 /etc/profile.d/


    Will set HTTPS and Let’s Encrypt after setup.