Skip to main content

AWS Elastic beanstalk

Proceed with installation through Elastic Beanstalk Configuration files (.ebextensions).

Under the .ebextensions directory, add the following config file and then release the new version. Execute the commands.

  1. Register the WhaTap repository.

  2. Install the package.

  3. Configure the PHP extension module through the install.sh configuration script.

    $ vi 01-WhaTap_install_repository_php.config

    commands:
    01_Install_whatap_repository:
    command: sudo rpm --import http://repo.whatap.io/centos/release.gpg
    ignoreErrors: true
    02_Install_whatap_repository:
    command: echo "[whatap]" | sudo tee /etc/yum.repos.d/whatap.repo > /dev/null
    ignoreErrors: true
    03_Install_whatap_repository:
    command: echo "name=whatap packages for enterprise linux" | sudo tee -a /etc/yum.repos.d/whatap.repo > /dev/null
    ignoreErrors: true
    04_Install_whatap_repository:
    command: echo "baseurl=http://repo.whatap.io/centos/latest/\$basearch" | sudo tee -a /etc/yum.repos.d/whatap.repo > /dev/null
    ignoreErrors: true
    05_Install_whatap_repository:
    command: echo "enabled=1" | sudo tee -a /etc/yum.repos.d/whatap.repo > /dev/null
    ignoreErrors: true
    06_Install_whatap_repository:
    command: echo "gpgcheck=0" | sudo tee -a /etc/yum.repos.d/whatap.repo > /dev/null
    ignoreErrors: true
    07_Install_whatap_php:
    command: sudo yum install -y whatap-php
    ignoreErrors: true
    08_Install_whatap_php_install.sh:
    command: (echo "[Enter the access key]"; echo "[Enter the server IP (a.a.a.a/b.b.b.b)")| sudo /usr/whatap/php/install.sh
    ignoreErrors: true
    Note

    The access key and server IP can be issued and verified on the Project Management > Agent Installation page.

  4. Deploy the new version in Beanstalk. The PHP monitoring agent is installed.