On this page:
When the PHP agent starts, it automatically starts the Java proxy that handles communication between the PHP agents and the controller.
Automatic startup of the proxy works for the great majority of situations. However, you can suppress the automatic startup of this script and run it manually. You would do this if:
To do this, you first need to configure the agent for manual proxy launch. Then you need to launch the proxy manually.
The PHP Agent configuration needs to be modified to reflect manual launching.
To configure the agent for manual launching:
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.
Before any traffic runs on the instrumented server, execute the runproxy script to start the proxy.
The following lists the full set of options for the runProxy script. The proxy control directory is required.
Usage: runProxy options -- proxyCommunicationDir logDirectory [jvmOption [ jvmOption [...] ] Options: -r <dir>, --proxy-runtime-dir=<dir> Specifies proxy runtime directory -d <dir>, --proxy-dir=<dir> Specifies root proxy directory -j <dir>, --jre-dir=<dir> Specifies root JRE directory -v, --verbose Enable verbose output -h,--help Show this
The following shows an example:
./proxy/runProxy -d ./proxy -r <agent.proxy_ctrl_dir> /tmp/proxy.communication /tmp/agentLogs
A node is created when the agent first detects traffic on it.
Every time you reboot the server, you need to execute the runproxy script if you have opted to start the proxy manually.