cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PHP Agent installation

r_ferrer
Newcomer

We are trying to install PHP agent on linux machine running apache with php-fpm here are the details of the installation:

Server: CentOS Linux release 7.1.1503 (Core)

Apache:

Server version: Apache/2.4.6 (CentOS)
Server built: Mar 12 2015 15:07:19
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"

And we have the following error when try to see the modules loaded in PHP:

PHP Warning: PHP Startup: dtphpagent (bootstrap failed, see dtagent log for details): Unable to initialize module
Module compiled with module API=0
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0

Any ideas?

3 REPLIES 3

andreas_grabner
Dynatrace Guru
Dynatrace Guru

Hi Roberto. Does the agent still provide data? the log message is a warning that something is wrong - but - just curious if the agent could still successfully load or not and whether it captures PurePaths

r_ferrer
Newcomer

Hi Andreas,
I don't think so, it's a fresh installation and the agent never contacted to the collector. The web server agent connects well (apache).
Regards.

bo_jia
Dynatrace Guide
Dynatrace Guide

Got some similar issues in support tickets recently. So post the solution here for better visibility (better late than never 🙂

Long story short: If you are using PHP 7.0+, it is only supported by one agent on AppMon 7.0+. However, you may still see such issue in AppMon 7.0.x due to a bug in bootsrap agent that failed to transfer the agent platform to one agent. Please refer to this KB article for work around.

This issue should be fixed in AppMon 7.1+.