Estoy tratando de ejecutar una nueva reliquia en la ventana acoplable con la imagen php8.0-apache.
Sigo las instrucciones de:
Cuando inicio el contenedor y veo la advertencia de PHP
Warning: PHP Startup: Unable to load dynamic library 'newrelic.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/newrelic.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/newrelic.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/newrelic.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/newrelic.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0archivo acoplable:
FROM php:8.0-apache RUN curl -L https://download.newrelic.com/php_agent/release/newrelic-php5-9.18.1.303-linux.tar.gz | tar -C /tmp -zx && \ export NR_INSTALL_USE_CP_NOT_LN=1 && \ export NR_INSTALL_SILENT=1 && \ /tmp/newrelic-php5-*/newrelic-install install && \ rm -rf /tmp/newrelic-php5-* /tmp/nrinstall* RUN sed -i \ -e 's/"REPLACE_WITH_REAL_KEY"/"COMPANY-KEY"/' \ -e 's/newrelic.appname = "PHP Application"/newrelic.appname = "company-test"/' \ -e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \ -e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \ /usr/local/etc/php/conf.d/newrelic.iniGracias por cualquier ayuda.
Debería haber una newline después de \ en la línea RUN curl -L ...
FROM php:8.0-apache RUN curl -L https://download.newrelic.com/php_agent/release/newrelic-php5-9.18.1.303-linux.tar.gz | tar -C /tmp -zx && \ export NR_INSTALL_USE_CP_NOT_LN=1 && \ export NR_INSTALL_SILENT=1 && \ /tmp/newrelic-php5-*/newrelic-install install && \ rm -rf /tmp/newrelic-php5-* /tmp/nrinstall* RUN sed -i \ -e 's/"REPLACE_WITH_REAL_KEY"/"COMPANY-KEY"/' \ -e 's/newrelic.appname = "PHP Application"/newrelic.appname = "company-test"/' \ -e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \ -e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \ /usr/local/etc/php/conf.d/newrelic.inifuncionó en mi servidor de prueba
# docker run -it test/newrelic:latest /bin/sh root@97b9cd183947:/var/www/html# php -r "phpinfo();"|grep newrelic /usr/local/etc/php/conf.d/newrelic.ini newrelic newrelic.daemon.address => @newrelic newrelic.daemon.app_connect_timeout => 15s newrelic.daemon.app_timeout => no valuecompruebe si hay algún archivo newrelic.ini y elimínelo.
navegue a /etc/php5/cli/conf.d/ y elimine todos los archivos *.ini correspondientes.
Esto debería resolver su problema.