Install the agent

  1. Install Atatus PHP agent:

    a.) Download the latest musl agent from:

    copy
    icon/buttons/copy
    // Download Musl tarball
    wget https://s3.amazonaws.com/atatus-artifacts/atatus-php/downloads/atatus-php-1.15.0-x64-musl.tar.gz
    

    b.) Unzip the agent files

    copy
    icon/buttons/copy
    tar -xzvf atatus-php-1.15.0-x64-musl.tar.gz
    cd atatus-php-1.15.0-x64-musl
    
  2. Install the php agent

    copy
    icon/buttons/copy
    sudo ATATUS_LICENSE_KEY="APM_LIC_KEY" ATATUS_APP_NAME="YOUR_APP_NAME" bash install.sh
    

    APM_LIC_KEY - add the Atatus APM License key in this line of code.

    YOUR_APP_NAME - add the application name in this line of code.

    Note:

    Do not change the app name. If you do, it will create a new project. For more advanced options, view Customizing Agent

    Make sure that the license key and app name are set correctly in the Atatus configuration file: atatus.ini. You can find the path of atatus.ini file by running php -i | grep atatus.ini command in the shell.

  3. Stop and Start your PHP services.

    Stop and Start your servers such as nginx, php-fpm, apache, httpd, etc. Then you will see the performance data in a couple of minutes.

    Just access your server from your web app or mobile app or curl. You will visualize your application's metrics within minutes.