newrelic

getting this error in /var/log/newrelic/php_agent.log?

warning: daemon connect(fd=6 uds=/tmp/.newrelic.sock) returned -1 errno=ENOENT. Failed to connect to the newrelic-daemon

instructions for fix if using centos / rhel 7

/etc/newrelic/newrelic.cfg:
port= "@newrelic-daemon"

/etc/php.d/newrelic.ini:
newrelic.daemon.port= "@newrelic-daemon"

systemctl restart httpd; systemctl restart newrelic-daemon; systemctl status newrelic-daemon

tail -f /var/log/newrelic/php_agent.log

instructions for fix if using other os’s:

https://discuss.newrelic.com/t/returned-1-errno-enoent-failed-to-connect-to-the-newrelic-daemon/48431