How to install the APM Insight PHP Agent in an Azure Web App?
Follow these steps to install and configure the APM Insight PHP Agent in an Azure Web App.
Step 1: Create a deployment script
- Navigate to the directory /home/apm/ (create it if it doesn’t exist).
- Create a new shell script named apm-phpagent-deploy.sh in this location.
- Add the following contents to the script:
- #!/bin/sh
- apt update && apt install -y wget unzip procps
- APM_LICENSE_KEY=YourAppManagerLicensekey
- APM_HOST=YourAppManagerHostname
- APM_PORT=YourAppManagerSSLPort
- ZPA_APPLICATION_NAME=YourApplicationName
- wget -O InstallDataExporter.sh https://www.manageengine.com/products/applications_manager/54974026/InstallDataExporter.sh
- sh InstallDataExporter.sh
- wget -O InstallAgentPHP.sh https://www.manageengine.com/products/applications_manager/54974026/InstallAgentPHP.sh
- sh InstallAgentPHP.sh
Note:
Replace YourAppManagerLicensekey with your Applications Manager license key.
Replace YourAppManagerHostname with your Applications Manager Hostname which open/allowed for communication.
Replace YourAppManagerSSLPort with your Applications Manager SSL port number which open/allowed for communication.
Replace YourApplicationName with your application name.
Step 2: Modify the Startup command
- Open the Azure Portal.
- Navigate to your Web App.
- Go to Settings -> Configuration.
- Under the General Settings tab, locate the Startup Command field.
- Enter the following command: /home/apm/apm-phpagent-deploy.sh
- Click Save.
Step 3: Restart the Web App
After updating the startup command:
- In the Azure Portal, navigate to your Web App.
- Click Restart.
- Then, Go to your Applications Manager -> APM tab and check if the application appears.
New to ADSelfService Plus?
Related Articles
How to install .NET agent on Azure app services?
You can track the performance of your .NET and .NET Core web app's key metrics like response time, throughput, and Apdex score via the APM Insight .NET agent hosted in Azure App Services. Installing APM Insight extension via Azure portal 1. Log in to ...
Uninstrumented Block of Code - APM Insight
In the traces tab --> Slowest Method Calls and Count we show if you find Un-instrumented block of code the reason is as follows: Basically, What is un-instrumented block of code in APM Insight? By default, APM Insight agent monitors known frameworks ...
How to rename an existing APM - Java agent application's monitor?
In Applications Manager's APM(Application Performance Monitoring) doesn't support renaming applications/monitors from the web client. However, the application name of an existing application instance can be renamed in the `apminsight.conf` file and ...
How to add an APM Insight Node.js agent in Kubernetes via InitContainers?
To integrate the APM Insight Node.js agent into your Kubernetes applications using InitContainers, follow the steps given below: Step 1: Create an empty volume that will be used to copy the agent files during the initContainers process. Example: ...
How to Install .NET agent on AWS Elastic Beanstalk?
One of the two options listed below can be used to install APM Insight agent onto a .NET web application hosted in Elastic Beanstalk environment via ebextensions. Deployment through AWS kit for Visual Studio. Deployment via uploading packages to AWS ...