Check for Updates Exception (Amazon Linux 2 64-bit)

VitalPBX Community Support General Discussion Check for Updates Exception (Amazon Linux 2 64-bit)

  • Post
    InTeleSync
    Participant

    Evaluating a new install of 2.3.8-3 on AWS. When choosing to Check for Updates in the GUI under profile submenu or Admin -> Add-ons, getting the error:

    Exception: exec(): Cannot execute a blank command at file /usr/share/ombutel/www/includes/package_manager.php on line 0

    What have I missed?

     

    0
Viewing 9 replies - 1 through 9 (of 9 total)
  • Replies
    Up
    0
    Down

    Looks like permission issues, we will verify, but for this, we need a AWS machine.

    0
    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
    Up
    0
    Down

    Are you using Centos 7?

    0
    Up
    0
    Down

    We have a manaul for this kind of installations:

    https://vitalpbx.org/en/vitalpbx-on-amazon-aws-ec2/

    0
    InTeleSync
    Participant
    Up
    0
    Down

    Thanks for the manual link. However, we need to stay on Amazon Linux 2 for a myriad of business reasons. Besides, the distributions are pretty much the same.

    0
    Up
    0
    Down

    Yes, as you say, pretty much the same, but not equals. We didn’t homologate VitalPBX with that distro yet, so, we cannot help you with that.

    0
    InTeleSync
    Participant
    Up
    0
    Down

    Like I said, it is a business decision to run Amazon Linux 2 only. If VitalPBX is incapable being run and supported on this distribution, then we will not be running VitalPBX. 

    Please homologate it. You will not regret it.

    0
    Up
    0
    Down

    As you may know VitalPBX runs over Centos 7 and we had made several tutorials about how to install it on different platforms, like: Google Cloud, Digital Ocean, Amazon, etc. but always using Centos 7.

    However, I am going to add this homologation in our task manager.

    Thanks for the suggestion.

    0
    InTeleSync
    Participant
    Up
    0
    Down

    We’ve been cleared by our support contract to run the AWS AMI CentOS 7. All appears to be well running CentOS 7 and not seeing this error.

    Thanks.

     

    0
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Check for Updates Exception (Amazon Linux 2 64-bit)’ is closed to new replies.