Hi,
In a recent POC of Dt 6.2.1 for an Application running on php (apache on linux), I found that the php.ini file was missing and not available in the php installation. So we were stuck.
Then someone from Client's admin team suggested the below:
1. manually create the php.ini file,
2. add dt entries (extension=xxx) into it,
3. add path reference for php.ini into httpd.conf using 'PHPINIDir' and then everything worked and dt was able to instrument.
httpd.conf:
-------------------
LoadModule dtagent_module /opt/ibuy/dynatrace-6.2/agent/lib64/libdtagent.so
PHPINIDir ${WEB_ROOT}/conf
-------------------
php.ini:
-------------------
extension=/opt/ibuy/dynatrace-6.2/agent/lib64/libdtagent.so
-------------------
Has anyone else faced a similar issue? How was it resolved?
Answer by Harald Z. ·
yes, the best practice is to create a new php.ini file, and if that file is not located in the default folder, you have to specify that by using PHPINIDir (in apache). If no php.ini file is used, PHP just runs on default settings. But to load the Dynatrace agent, we definitely need that file.
Answer by Praveen B. ·
Hi Roman,
My question is:
Given a situation where php.ini is not available, what should be done to inject DT agent?
Were the steps carried out in my case the right thing to do?
Did anyone else face a similar situation and how was it solved?
JANUARY 15, 3:00 PM GMT / 10:00 AM ET