# The PHP application is not coming up, After Configuring APM PHP Agent

**URL:** <https://discuss.elastic.co/t/the-php-application-is-not-coming-up-after-configuring-apm-php-agent/314871>\
**Category:** APM\
**Tags:** docker, php\
**Created:** [September 21, 2022, 1:22pm UTC](https://discuss.elastic.co/t/the-php-application-is-not-coming-up-after-configuring-apm-php-agent/314871 "2022-09-21T13:22:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swathisuryaneni](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@swathisuryaneni](https://discuss.elastic.co/u/swathisuryaneni)\
**Post date:** [September 21, 2022, 1:22pm UTC](https://discuss.elastic.co/t/the-php-application-is-not-coming-up-after-configuring-apm-php-agent/314871/1 "2022-09-21T13:22:07Z")

</div>

**Kibana version** : 7.16.2

**Elasticsearch version** : 7.16.2

**APM Server version** : 7.15.2

**APM Agent language and version** : apm-agent-php\_1.5.2\_all.apk

- For Elasticsearch, kibana and APM using docker images

**Steps Used** :

1. I have one php application using(php:8.1-fpm-alpine)image and configured APM PHP Agent with Dockerfile below instructions  
RUN wget [https://github.com/elastic/apm-agent-php/releases/download/v1.5.2/apm-agent-php\_1.5.2\_all.apk](https://github.com/elastic/apm-agent-php/releases/download/v1.5.2/apm-agent-php_1.5.2_all.apk)  
RUN ls -la  
RUN apk add --allow-untrusted ./apm-agent-php\_1.5.2\_all.apk  
and APM parameters passed through bitbucket deployment variables, but the application is crashing it seems a mis-behavior of the APM library. For reference providing the logs of the application.

**Errors logs of the application** :  
Waiting for database to be ready...  
The database is now ready and reachable  
[OK] Already at the latest version  
[OK] Public keys have been stored.  
[20-Sep-2022 11:28:13] NOTICE: PHP message: PHP Warning: Can't preload already declared class ReflectionEnum in /srv/api/vendor/laminas/laminas-code/polyfill/ReflectionEnumPolyfill.php on line 8  
Fatal error: Maximum execution time of 60+2 seconds exceeded (terminated) in Unknown on line 0

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 12, 2022, 9:22am UTC](https://discuss.elastic.co/t/the-php-application-is-not-coming-up-after-configuring-apm-php-agent/314871/2 "2022-10-12T09:22:41Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
