elastic / elastic/apm-agent-php
Error installing Elastic PHP agent
- Dominant language
- PHP
- Stars
- 268
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I'm trying to install Elastic PHP agent in a container with the image php:8.2.0-fpm and it's giving me the following error:
58.44 Failed. The supported PHP versions are 7.2-8.2.
58.44 Failed. Elastic PHP agent extension is not supported for the existing PHP installation.
58.44 dpkg: error processing package apm-agent-php (--install):
58.44 installed apm-agent-php package post-installation script subprocess returned error exit status 1
58.51 Errors were encountered while processing:
**To Reproduce**
Steps to reproduce the behavior:
1. Build image com php:8.2.0-fpm installing the extension according to the documentation
```
wget https://github.com/elastic/apm-agent-php/releases/download/v1.10.0/apm-agent-php_1.10.0_all.deb && \
dpkg -i apm-agent-php_1.10.0_all.deb
```
and enabling the extension
```
extension=elastic_apm.so
elastic_apm.server_url=xxxx
elastic_apm.service_name="xxxx"
```
**Expected behavior**
Since the documentation says it supports php 7.2 - 8.2 I expected it to install correctly.
Contributor guide
Assessment
This issue has not been assessed yet.