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 ...
APM Insight Node.js agent shows “extraneous” — monitor not onboarded
Scope: The standard install is in the installation guide (unzip, npm install, require('apminsight') first line, apminsightnode.json fields). This article covers only why a finished install can still be extraneous — typically on servers with no ...
How to set the PHP path during agent installation?
This is only applicable to the agent versions 4.2 and above. For Linux Step 1: Download the installation script. wget -O InstallAgentPHP.zip https://www.manageengine.com/products/applications_manager/54974026/InstallDataExporter.zip && unzip ...
APM Insight Java Agent – Onboarding & Troubleshooting Guide
This document is a step-by-step guide to onboarding and troubleshooting the APM Insight Java Agent, for both the standalone agent and the FSO Auto Profiler. It covers agent attachment, version compatibility, configuration, connectivity, data ...