• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home
  • Public Forums
  • Application Monitoring & UEM
  • AppMon & UEM Open Q&A
avatar image
Question by Praveen B. · Sep 03, 2015 at 10:37 AM · configuration php

php.ini is not available. Where to inject dt agent?

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?

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image
Best Answer

Answer by Harald Z. · Sep 15, 2015 at 08:45 AM

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.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Praveen B. · Sep 07, 2015 at 04:35 AM

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?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Roman S. · Sep 03, 2015 at 12:22 PM

So if I read the above correct the installation had no php.ini file - you created one with our extension, added it to httpd.conf and now everything works.

What is the question? We need to load our extension - no way around it.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

PHP Agent for PHP 5.2.6 version (Not supported?)

Training Guidance, Tips ( Words of Wisdom), or Documentation

How is PHP licensed? When is a PHP agent consumed?

PHP Error rule detected as failed purepath

PHP Agent is not showing up in agent Overview in AppMon 7.2

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A