Verifying the PHP daemon

Problem

You have installed New Relic's PHP agent and daemon, but the daemon does not appear to be functioning.

Solution

Verify that the daemon is running correctly:

  1. Execute this shell command to list running processes that match "newrelic-daemon":

    ps -ef | grep newrelic-daemon
    
  2. Verify the daemon is running by checking the output from the previous command for two running daemon processes that look like this. If they are not listed, proceed to the next step.

    newrelic     1368     1  0 00:28 ?     00:00:00 /usr/bin/newrelic-daemon ...
    newrelic     1370  1368  0 00:28 ?     00:00:00 /usr/bin/newrelic-daemon ...
    
  3. If no processes are listed, your daemon is not running and you must start the daemon based on the startup mode it is in:

For more information, see New Relic daemon processes.

For more help

Additional documentation resources include PHP Agent Troubleshooting (individual topics describing common problems, causes, and solutions for your PHP agent installation).

Join the discussion about PHP in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.