Instrumenting an Apache Web server, including PHP, is a matter of seconds. You can use the just-unzip XAMPP stack on Windows.
Download the applicable 32-bit 7Zip archive, open it and drag the XAMPP folder to the C: drive.
You can set the environment variable
%DT_HOME%, so you can reference it in paths. For example, set a default 64-bit AppMon installation with
setx DT_HOME "C:\Program Files\Dynatrace\Dynatrace 7.0". You can also do it interactively in the System control panel.
To perform the configuration:
Open the Application Environment Configuration dialog box.
Select the application type as PHP.
In the PHP Engine on Webserver step, click Add . The Configure PHP Engine on Webserver dialog box appears.
Select PHP Engine on Apache. Keep the default name for it.
Select the machine, where the Apache installed and its architecture.
Server argument values in the
/%DT_HOME%/agent/conf/dtwsagent.ini file with the text from the dialog box, to change the Agent name and Collector to connect to.
Add the line from the Apache Web Server Module Configuration pane as last module in the
xampp/apache/conf/httpd.conf file, and add the line from the PHP Extension Configuration pane as last extension or even at the end of the
Restart the Dynatrace Web Server Agent and the Web server and navigate to the site served by the latter.
For a Web server with PHP instrumentation you need three components: a running Web Server (master) Agent and the actual Agent LoadModule for the Web server and an Agent extension hooked into PHP.
If the message
Successfully connected 3 Agents displays, instrumentation should work.
If the message
Successfully connected 1 Agent displays, then only the Web Server Agent runs. Something went wrong with the Apache LoadModule and the PHP extension.
If no message displays, then there is a problem with the Web Server Agent and the state of the Apache LoadModule / PHP extension injection is unknown.
Close the summary dialog box.
Browse the site to make sure that components are actually loaded.