Agent Versions:
Note:
New Monitor/Upgrade Considerations:
Recommendations:
In summary, you can opt for v3.5.1 for existing configurations or v4.1 and above to benefit from the latest features, which require additional setups. Please be aware that PHP 8.2 is exclusively supported by v4.1 and above.
The PHP agent can be installed using one of the following methods:
Download the installation script.
wget -O InstallAgentPHP.zip https://www.manageengine.com/products/applications_manager/54974026/InstallAgentPHP.zip && unzip InstallAgentPHP.zip
Execute the installation command with the required options.
sudo sh InstallAgentPHP.sh -lk [LICENSE KEY]
or
sudo sh InstallAgentPHP.sh -license.key [LICENSE KEY]
[LICENSE KEY] - License key from Applications Manager. (Mandatory)
Restart your web server and the FastCGI Process Manager (FPM), if used.
Note:
Given below are the other available options and their descriptions:
| Option | Description |
|---|---|
| -php.install_path | The custom installation path of the PHP agent. |
| -lk, -license.key | The license key of the account. |
| -zpa.application_name | Name of the application. Note: The default name is PHP-Application. |
| -zpa.status_port | The inter-process communication status port number. |
| -zpa.data_port | The inter-process communication data port number. |
| -zpa.remote_exporter_ip | The IP Address of the device on which the data exporter is currently running. |
| -zpa.remote_exporter_hostname | The hostname of the device on which the exporter is running. |
| -zpa.span_limit | The maximum number of spans to be captured (Default value: 10000). |
Download the installation script.
wget -O InstallAgentPHP.zip https://www.manageengine.com/products/applications_manager/54974026/InstallAgentPHP.zip && unzip InstallAgentPHP.zip
Set the required options.
export APPMANAGER_LICENSE_KEY=[LICENSE KEY]
[LICENSE KEY] - License key from Applications Manager. (Mandatory)
Execute the installation command.
sudo -E sh InstallAgentPHP.sh
Restart your web server and the FastCGI Process Manager (FPM), if used.
Note:
Given below are the other available options and their descriptions:
| Option | Description |
|---|---|
| PHP_INSTALL_PATH | The Custom Installation Path of the PHP agent. |
| APPMANAGER_LICENSE_KEY | The license key of the account. |
| ZPA_APPLICATION_NAME | Name of the application. Note: The default name is PHP-Application. |
| ZPA_STATUS_PORT | The inter-process communication status port number. |
| ZPA_DATA_PORT | The inter-process communication data port number. |
| ZPA_REMOTE_EXPORTER_IP | The IP Address of the device on which the data exporter is currently running. |
| ZPA_REMOTE_EXPORTER_HOSTNAME | The hostname of the device on which the exporter is running. |
| ZPA_SPAN_LIMIT | The maximum number of spans to be captured (Default value: 10000). |
Extract the downloaded Agent zip file into the /opt directory. This will create a sub-directory called zpa.
$ cd /opt$ unzip [Downloaded_Agent_Path]/[Downloaded_Agent_Filename].zip
For PHP Agent v4.5 and above
$ sh /opt/zpa/bin/agent_php.sh install -license.key [LICENSE KEY]
[LICENSE KEY] (Mandatory) - The license key copied from Applications Manager.
For PHP Agent versions below v4.5
$ sh /opt/zpa/bin/agent_php.sh install
Note: Please verify that the instructions mentioned above have been followed.
Follow the steps given below to install the PHPAgent and Applications Manager's DataExporter in the Docker Container:
Example Dockerfile script:
FROM php:7.4-fpm-bullseye##YOUR CODE##prequsites (ignore if already installed)RUN apt-get update && apt-get install -y wget unzip procps #installing PHP AGENTwget -O InstallAgentPHP.zip https://www.manageengine.com/products/applications_manager/54974026/InstallAgentPHP.zip && unzip InstallAgentPHP.zipRUN sh InstallAgentPHP.sh -lk <licensekey> -zpa.application_name <PHP-Application>#installing AppManagerDataExporter (This is mandatory for PHP Agent to work)wget -O InstallDataExporter.zip https://www.manageengine.com/products/applications_manager/54974026/InstallDataExporter.zip && unzip InstallDataExporter.zip RUN sh InstallDataExporter.sh -root -nsvc -license.key <licensekey> -apm.host <apm_host> -apm.port <apm_port> -apm.protocol.https false #entrypoint scriptCOPY ./example-entrypoint.sh /example-entrypoint.sh ENTRYPOINT [ "sh","/example-entrypoint.sh" ]
Example Entrypoint script:
#!/bin/sh# Start AppManagerDataExportersh /opt/AppManagerDataExporter/bin/service.sh start ##YOUR CODE#php-fpm
It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.
Reviewer Role: Research and Development