Hi, we installed new relic and every time we run a php file from the command line the info appear at new relic dashboard, so it works, but is not detecting the execution of the php on the webserver from the live traffic.
The server hosts a Wordpress installation over we built an api for a mobile app, so there is no website to see but every request from the app to the server executes php files, for example this /api/service/promo/ consumes a request to the API which is a wp plugin.
So we want to know if there is something we need to do in order to get newrelic work because as I wrote, when we run a php file from command line it works, and the log file doesn’t show any errors except lack of activity if I don’t run any php files from CL
We also tried to set wordpress as the framework in the newrelic.ini file but didn’t work.
[root@]# apachectl -V
[Mon Nov 06 11:33:46.989057 2017] [so:warn] [pid 18184] AH01574: module rewrite_module is already loaded, skipping
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built: Dec 2 2014 08:09:42
Server’s Module Magic Number: 20120211:24
Server loaded: APR 1.4.8, APR-UTIL 1.5.2
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Server MPM: prefork
forked: yes (variable process count)
Server compiled with…
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
[root@]# php -v
PHP 5.4.16 (cli) (built: Jun 10 2015 04:34:17)
Copyright © 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2013 Zend Technologies