Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newrelic on older PHP version with arm does not work #1036

Closed
sidneyprins opened this issue Dec 20, 2024 · 1 comment
Closed

Newrelic on older PHP version with arm does not work #1036

sidneyprins opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sidneyprins
Copy link

Version of install-php-extensions

mlocati/php-extension-installer:2

Error description

Hello,

When using FROM php:7.2-fpm-alpine with install-php-extensions newrelic and building for arm platform: linux/arm64, this results into an error.

78.56 NewRelic has been installed from https://download.newrelic.com/php_agent/release/newrelic-php5-11.4.0.17-linux-musl.tar.gz
78.56 You may need to:
78.56 - change the owner/permissions of /var/log/newrelic
78.56   (for example: chown -R www-data:www-data /var/log/newrelic)
78.56 - set the value of the newrelic.license configuration key in
78.56   /usr/local/etc/php/conf.d/newrelic.ini
78.56   (if you didn't set the NR_INSTALL_KEY environment variable)
78.56 
78.56 Unable to find the file of the PHP extension "newrelic"

My guess it's because newrelic has no supported arm versions for these older php versions? It seems to work fine for more recent php versions such as 8.2

Docker image

php:7.2-fpm-alpine

Minimal Dockerfile

FROM php:7.2-fpm-alpine AS production
COPY --from=mlocati/php-extension-installer:2 /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions newrelic

---
docker-compose.yaml

services:
  php:
    build:
        context: .
        dockerfile: Dockerfile
        target: production
    platform: linux/arm64
@sidneyprins sidneyprins added the bug Something isn't working label Dec 20, 2024
Copy link

Version of install-php-extensions

mlocati/php-extension-installer:2

@sidneyprins the install-php-extensions version that you specified (mlocati/php-extension-installer:2) is not valid.

Please specify the install-php-extensions version you are using: it's the first line printed by the script.
For example:

install-php-extensions v.X.Y.Z

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant