PHP APM with AWS Elastic Beanstalk
  • 1 Minute to read
  • Dark
  • PDF

PHP APM with AWS Elastic Beanstalk

  • Dark
  • PDF

Article summary

Instructions on how to install the Retrace Linux Agent and PHP APM on AWS Elastic Beanstalk.

Installing Stackify Linux Agent

  1. Create a new file named stackify.config in your application’s .ebextensions folder. Learn More about .ebextensions.
  2. Add the following to your stackify.config file: Replace [INSERT ACTIVATION KEY] with your activation key value. Optionally you can include the device name by replacing the [aliasname] with the desired device alias. You can find your activation key under Settings: Account.
    command: sudo ./ --key [INSERT ACTIVATION KEY] --environment "Production" --devicealias [aliasname]
    cwd: /home/ec2-user/stackify-agent-install-32bit

  "/etc/php.d/99stackify.ini" :
    mode: "000755"
    owner: root
    group: root
    content: |
      stackify.application_name=PHP Elastic Beanstalk Application

Note: stackify.application_name and stackify.environment_name fields can be adjusted per the name and environment of your application
  1. Deploy your app to Elastic Beanstalk

Was this article helpful?