![]() Given that PHP still has to get instructed to load / enable the newrelic extension, we expected this conditional enable to work. We consider splitting configuration and instantiation a good practice. Docker uses a Bridge Network by default, Each Container will have its own network namespace, which means every network configuration you modified happened inside the container and has nearly nothing to do with the network on your server. There’s also several out-of-tree extensions enabled, which may interfere with the newrelic extension (although they don’t show up in the trace and as far as I know not relevant to the call. As the change Nginx host port to 8080 part. ![]() We solved the warning above by removing the first line from the newrelic.ini, so the config is there but php will not load it. I’m using agent version 9.18.1.303, installed via newrelic-php5-9.18.1., and php 7.3.31 (from dockerhub, image php:7.3.31-fpm-buster). Docker does not allow a COPY command to be conditional in a clean way, so the newrelic.ini file still gets copied. Given that NR Agent does not allow installing the agent and extension on ARM, we make the installation conditional and do not install it on dev environments. PHP Warning: PHP Startup: Unable to load dynamic library 'newrelic.so' (tried: /usr/lib/php/20210902/newrelic.so (/usr/lib/php/20210902/newrelic.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/newrelic.so.so (/usr/lib/php/20210902/newrelic.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 This does properly work, but the problem we faced with that relates to the warning also gets:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |