# PHP APM Agent

**URL:** <https://discuss.elastic.co/t/php-apm-agent/340436>\
**Category:** Elastic Observability\
**Created:** [August 9, 2023, 8:27am UTC](https://discuss.elastic.co/t/php-apm-agent/340436 "2023-08-09T08:27:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnom92](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@gnom92](https://discuss.elastic.co/u/gnom92)\
**Post date:** [August 9, 2023, 8:27am UTC](https://discuss.elastic.co/t/php-apm-agent/340436/1 "2023-08-09T08:27:28Z")

</div>

Hello,

I see the PHP APM Agent is available on Linux OS only:

> **[Set up the Agent | APM PHP Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/php/current/setup.html)**

Is there really no way to get it working on Windows server ? Or is there something equivalent for Windows OS ?  
Thanks,

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [August 9, 2023, 8:32am UTC](https://discuss.elastic.co/t/php-apm-agent/340436/2 "2023-08-09T08:32:38Z")

</div>

Hello Niclas,

There seems to be no way: The [last try](https://github.com/elastic/apm-agent-php/issues/396) failed with compiler errors on Windows and the issue got closed. But if you want, you can give building from source another try as the issue was from 2021.

Best regards  
Wolfram

---

<div class="post-metadata">

**Author:** ![gnom92](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@gnom92](https://discuss.elastic.co/u/gnom92)\
**Post date:** [August 9, 2023, 8:46am UTC](https://discuss.elastic.co/t/php-apm-agent/340436/3 "2023-08-09T08:46:46Z")

</div>

Thank you, Wolfram. I'll have a look to that link.  
Do you think we can run that PHP APM Agent within a Linux subsystem from Windows ?

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [August 9, 2023, 9:03am UTC](https://discuss.elastic.co/t/php-apm-agent/340436/4 "2023-08-09T09:03:36Z")

</div>

I don't know any reason why it shouldn't work as it is a full Linux kernel and not only an abstraction on top of the Windows Kernel.

There is just one issue: You would need to run PHP on the WSL too as the apm agent is an extension to PHP and I don't know if you really want that. In my opinion, WSL is cool but it is more a developer tool and not a production ready platform.

---

<div class="post-metadata">

**Author:** ![gnom92](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@gnom92](https://discuss.elastic.co/u/gnom92)\
**Post date:** [August 9, 2023, 9:06am UTC](https://discuss.elastic.co/t/php-apm-agent/340436/5 "2023-08-09T09:06:57Z")

</div>

Thank you for your input, Wolfram !
