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
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with…
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/run/httpd/httpd.pid"
-D DEFAULT_SCOREBOARD=“logs/apache_runtime_status”
-D DEFAULT_ERRORLOG=“logs/error_log”
-D AP_TYPES_CONFIG_FILE=“conf/mime.types”
-D SERVER_CONFIG_FILE=“conf/httpd.conf”
[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
Regards