Open malf88 opened 10 months ago
Minimum Reproducible:
When you change php81 to php82, the PHP Version returns ".", indicating a failed concatenate.
The function performing this is in post-install.sh:
function php_command() {
PHP_BIN=$(command -v php)
${PHP_BIN} -d memory_limit=128M "$@"
}
This appears to be an issue with php 8.2 and not the Elastic Agent itself. In PHP 8.2, the "php" command is actually "php82", so the environmental variable "PHP_BIN" fails to correctly use the path to the php binary.
A workaround I made for now is if you're using php82 to ensure you have either a symlink or a copy pointed at /usr/bin/php
Yea... In my alpine image and php8.1 I simply do: ln -s /usr/bin/php81 /usr/bin/php after php installation.
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:
and enabling the extension
elastic_apm.server_url=xxxx elastic_apm.service_name="xxxx"