Uninstalling APM Insight PHP Agent in Linux


APM Insight PHP agent deployed on the web server gives you end-to-end web-transaction awareness, enabling you to isolate performance issues and resolve them quickly. To monitor your PHP application's performance, you will need to deploy the agent onto your web server. The agent collects application performance metrics and sends them to the Applications Manager server every 60 seconds.

Browse through the following topics to learn how to uninstall PHP agent based on respective versions:

Uninstall PHP agent v4.0 and above

Follow the steps given below to uninstall PHP agent for versions 4.0 and above:

  1. Execute the below uninstallation command:
    sudo sh /opt/zpa/bin/agent_php.sh uninstall
  2. Restart your web server as well as the FastCGI Process Manager (FPM).

Uninstall PHP agent below v4.0

Follow the steps given below to uninstall PHP agent for versions below 4.0:

  1. Change the directory to /opt/zpa/binusing the following command:
    cd /opt/zpa/bin
  2. Execute the uninstall command as mentioned below:
    sudo sh configure.sh uninstall
  3. Now remove the agent directory by executing the following command:
    sudo rm -r /opt/zpa
  4. In case the agent process is still running, stop it using the following command:
    sudo kill -9 $(pgrep zpdp) > /dev/null 2>&1