Agent Versions:
New Monitor/Upgrade Considerations:
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:
wget -O InstallAgentPHP.sh https://www.manageengine.com/products/applications_manager/54974026/InstallAgentPHP.sh
sudo sh InstallAgentPHP.sh -lk [LICENSE KEY]
sudo sh InstallAgentPHP.sh -license.key [LICENSE KEY]
[LICENSE KEY] - License key from Applications Manager. (Mandatory)
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). |
wget -O InstallAgentPHP.sh https://www.manageengine.com/products/applications_manager/54974026/InstallAgentPHP.sh
export APPMANAGER_LICENSE_KEY=[LICENSE KEY]
[LICENSE KEY] - License key from Applications Manager. (Mandatory)
sudo -E sh InstallAgentPHP.sh
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). |
$ cd /opt
$ unzip [Downloaded_Agent_Path]/[Downloaded_Agent_Filename].zip
$ sh /opt/zpa/bin/agent_php.sh install -license.key [LICENSE KEY]
$ 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 AGENT
RUN wget -O InstallAgentPHP.sh https://www.manageengine.com/products/applications_manager/54974026/InstallAgentPHP.sh
RUN sh InstallAgentPHP.sh -lk <licensekey> -zpa.application_name <PHP-Application>
#installing AppManagerDataExporter (This is mandatory for PHP Agent to work)
RUN wget -O InstallDataExporter.sh https://www.manageengine.com/products/applications_manager/54974026/InstallDataExporter.sh
RUN sh InstallDataExporter.sh -root -nsvc -license.key <licensekey> -apm.host <apm_host> -apm.port <apm_port> -apm.protocol.https false
#entrypoint script
COPY ./example-entrypoint.sh /example-entrypoint.sh
ENTRYPOINT [ "sh","/example-entrypoint.sh" ]
Example Entrypoint script:
#!/bin/sh
# Start AppManagerDataExporter
sh /opt/AppManagerDataExporter/bin/service.sh start
#
#YOUR CODE
#
php-fpm