-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Support to install newrelic #904
Comments
I don't know newrelic... is it a PHP extension? How do you install it? |
newrelic is a APM monitoring tool, which uses a There are basically 2 ways of using the newrelic php daemon. Either as separate container, or in the same container as php is running. Both need the newrelic php agent installed in the image that is running php. The newrelic agent adds a few "native" php functions to interact with newrelic. see: https://docs.newrelic.com/docs/apm/agents/php-agent/php-agent-api/guide-using-php-agent-api/ We usually install newrelic in our images like so: RUN cd ~ \
&& export NEWRELIC_VERSION="$(curl -sS https://download.newrelic.com/php_agent/release/ | sed -n 's/.*>\(.*linux\).tar.gz<.*/\1/p')" \
&& curl -sS "https://download.newrelic.com/php_agent/release/${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - \
&& cd "${NEWRELIC_VERSION}" \
&& NR_INSTALL_SILENT=true ./newrelic-install install \
&& NR_SO_FILE=`readlink /usr/local/lib/php/extensions/no-debug-non-zts-*/newrelic.so` \
&& mv "${NR_SO_FILE}" /usr/local/lib/php/extensions/no-debug-non-zts-*/newrelic.so \
&& chown -R www-data:www-data /var/log/newrelic \
&& cd .. \
&& unset NEWRELIC_VERSION \
&& rm -rf "${NEWRELIC_VERSION}" A few notes, this doesn't change the newrelic.ini file located in We often mount a separate What do you think? Would this be a php extension to add to |
Thanks for the detailed instructions! |
thank you, it works |
Hi,
We use newrelic a lot in our projects, and I'm wondering if this is a great candidate to install with
install-php-extensions
.This might be related to #784 , but it was closed with status
completed
.The text was updated successfully, but these errors were encountered: