Automatically restart APM Insight PHP agent during system reboots

Automatically restart APM Insight PHP agent during system reboots

To automatically restart APM Insight PHP agent during system reboots, use the below given steps:

For systemd servers: 
From APM Insight PHP agent version 2.8, agent will automatically start during server reboots for systemd supported Linux flavors. 

For non systemd servers:
1. Edit the /etc/rc.local file 
2. Add the following lines to the rc.local,
  1. cd /opt/zpa/bin
  2. sh run.sh restart
Note: The above steps apply to systemd servers using APM Insight PHP agent versions below 2.8. 





    • Related Articles

    • Reconfigure APM Insight PHP agent during PHP version upgrade

      If you have upgraded your PHP version and face problems in monitoring after the upgrade, here's how you can resolve it.  In general, APM Insight PHP agent registers with the PHP version present in the server at the time of installation.  So when you ...
    • How to add APM Insight Java agent without application restart?

      In general, after installing the APM Insight Java agent, you have to restart your application for the agent to capture monitoring data. But in case of critical issues in the app, like sudden application slowness, where you haven't installed APM ...
    • Methods to upgrade PHP agent (Linux/Windows)

      PHP agent can be upgraded in 2 ways: Auto upgrade Manual upgrade Auto upgrade: When this feature is enabled, the latest version of the agent is automatically downloaded and deployed when it is made available After the deployment process is complete, ...
    • DC migration steps for APM Insight agents

      For Server based installations 1. Obtain the new device key. 2. Update the license.key value in the APM Insight configuration file (or the environment variable mentioned) with the new device key. The location varies for each agent, as listed below: ...
    • DC migration steps for APM Insight PHP agent

      PHP Windows agent Obtain the new device key. Update the license.key value in the apminsight.conf file located at <INSTALLPATH>\APM Insight PHP Agent\zpa\bin. Log in to the server and delete the existing instance information file instance.out located ...