Help Docs

Install PHP Agent in AWS Beanstalk

To install the PHP agent in an AWS Elastic Beanstalk environment, follow these steps:

  1. Within your Elastic Beanstalk application, create a new file named site24x7-php-agent.config inside the .ebextensions folder with the following content.
files:
 "/opt/elasticbeanstalk/hooks/appdeploy/post/site24x7-php-agent.sh":
  mode: "000755"
  owner: root
  group: root
  content: |
    #!/bin/sh
    export $(cat /opt/elasticbeanstalk/deployment/env | xargs)
    wget -O InstallDataExporter.sh https://staticdownloads.site24x7.com/apminsight/S247DataExporter/linux/InstallDataExporter.sh
    sh InstallDataExporter.sh
    wget -O InstallAgentPHP.sh https://staticdownloads.site24x7.com/apminsight/agents/AgentPHP/linux/InstallAgentPHP.sh
    sh InstallAgentPHP.sh
commands:
 site24x7_php_agent:
 command: "sh /opt/elasticbeanstalk/hooks/appdeploy/post/site24x7-php-agent.sh"
  1. Edit your Elastic Beanstalk application configuration and add the following environment properties:
    • S247_LICENSE_KEY
    • ZPA_APPLICATION_NAME

Related article

Amazon Elastic Beanstalk Monitoring Integration

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!