Hi,
I had one query regarding Dynatrace usage for profiling of Standalone PHP code.
We have Dynatrace license for Java agent, .Net agent , web server agent and browser agent. I want to profile a standalone PHP code (not running on Apache) using Web Server agent. Can it be done?
As per the support document, for PHP profiling, it loads an extension added in PHP.INI file. I suppose, Web server loads this extension to start profiling. If we can load this agent manually/externally will it profile PHP code?
Please let me know if above argument is a possible.
Thanks,
Madhav
Answer by Harald Z. ·
Hi Madhav,
yes, you can do that. You have to load the extension in the php.ini file, similar to what has to be done when using PHP with Apache. For PHP CLI you have to add
dtphpagent.useAgentForCmdLine = true
to your php.ini
Harald
Hi Harald,
I have created a system profile for PHP standalone application. When I am trying to add New Agent group to it, the PHP option is not available under Application tag. Please see attached screenshot. How should I move further to add PHP agent in system profile?
Regards,
Arati Bhadale
You need to have a PHP Agent License first. This Dialog will only show you the technologies that you are licensed for. In the initial post you mentioned that you have licenses for Java, .NET, Web Server and Browser Agent. For PHP you need a PHP License. Once you have that license you will be able to define that Tier with that technology type
JANUARY 15, 3:00 PM GMT / 10:00 AM ET