Ensure that the Agent is Installed in the Correct Directory

It is possible that the agent was installed in the wrong directory. Verify the location of your PHP installation.

Then check where the installer actually installed the agent files.

  • The appdynamics_agent.ini file should be in the same directory that contains the php.ini file for your PHP installation.
  • The appdynamics_agent.so file should be in the extensions directory for your PHP installation.

See Files Added to Your Installation for information about how to locate these directories.

In addition, on Linux you can use pstree to locate the agent. The pstree command displays the agent running under Apache if the agent is installed properly. See http://freecode.com/projects/pstree.

If the agent files are not in the correct directories, re-install the agent with the -i and -e options.

Re-install the agent

If the app agent is not installed in the right directory, re-install the agent using the install.sh installer with the -i and -e options. Use the -i to install the appdynamics_agent.ini file in the same directory as your php.ini file and the -e option to install the appdynamics_agent.so file in the same directory as your PHP extensions directory. See Install the PHP Agent by Shell Script.

If you initially installed the agent using the RPM installer, you can find the shell script installer at /usr/lib/appdynamics-php-agent/install.sh.

Check error messages in the installation output

When you reinstall, examine carefully any error messages in the output of the install script, especially those that direct you to copy some settings into your php.ini

If necessary copy those settings into the php.ini file. See PHP Agent Configuration Settings for information on common settings that may be missing.