Skip to content
Advertisement

docker php8.0-apache new relic – Unable to load dynamic library ‘newrelic.so’

I’m trying to run new relic in docker with php8.0-apache image.

I follow instruction by:

https://docs.newrelic.com/docs/agents/php-agent/advanced-installation/docker-other-container-environments-install-php-agent/

When I start container and see PHP warning

JavaScript

Dockerfile:

JavaScript

Thank you for any help.

Advertisement

Answer

check if there is any newrelic.ini file and remove it.

navigate to /etc/php5/cli/conf.d/ and delete all corresponding *.ini files.

This should resolve your problem.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement