Configure the Agent for Manual Proxy Launch

The PHP Agent configuration needs to be modified to reflect manual launching.

To configure the agent for manual launching:

  1. Open the PHP configuration file for editing.
    The file is php.ini or appdynamics_agent.ini, depending on your setup.
  2. Set the agent.auto_launch_proxy setting to 0.
  3. Set the agent.proxy_script to the path of the runproxy that you want to use.
    The file in the script is relative to the root of the PHP agent. You can specify the absolute path if you prefer.
  4. Set the agent.proxy_ctrl_dir to the directory to use for initial control communication between the agent and the proxy.
    This directory contains the domain control socket, which the agent uses to start a Splunk AppDynamics node. This directory is where the agent gets the configuration for the node. The application user must have read permission on the proxy_ctrl_dir.
Whenever you install the PHP agent, the installer overwrites the runproxy script and the appdynamics_agent.ini file, but not the php.ini.
If you re-install, you need to reset the agent.auto_launch_proxy setting in the appdynamics_agent.ini file before you restart the server.