Question

How to setup New Relic on a DO Ubuntu (NR is asking for a https proxy)

I have no idea how to enable the install of the New Relic script on a DO server, as it requires a http proxy, and seems a bit over the top to install some proxy service just to install NR.

I am using New Relic on several other servers, to figure out performance issues with Wordpress and database.

Anybody has some pointers?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Thanks for replying Bobby and Brian, i think i failed to mention the DO is managed by Spinupwp. Spinup has not been able to give me any pointers so far.

I revisited this issue, hoping i was wrong, but this is the message when installing the NR php client. Logged in as root via ssh.

[ssh] ServerCo:~$ curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash && sudo XXXXXXXXXXXXXXX NEW_RELIC_ACCOUNT_ID=XXXXXXX /usr/local/bin/newrelic install -n php-agent-installer Starting installation. Installing New Relic CLI v0.50.14 Installing to /usr/local/bin using sudo

! Connecting to New Relic Platform… Failed

We encountered an issue during the installation: there was an error connecting to New Relic platform. This is an indication that your firewall or proxy settings do not allow outbound traffic to the New Relic platform. To configure the use of an HTTP proxy, use the HTTP_PROXY and/or HTTPS_PROXY environment variables. For more details visit https://github.com/newrelic/newrelic-cli/blob/main/docs/GETTING_STARTED.md#using-an-http-proxy. Details: 403 response returned. If this problem persists, visit the documentation and support page for additional help here at https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/get-started/requirements-infrastructure-agent/

[/ssh]

Bobby Iliev
Site Moderator
Site Moderator badge
June 1, 2022

Hello,

As already mentioned HTTP proxy should not be needed. As you are planning to monitor a WordPress website, I believe that you just need to install the New Relic PHP agent.

Are you installing another agent?

Best,

Bobby

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

A proxy isn’t required, you can leave it blank, unless you have egress filters enabled. The new relic agent just connects to the new relic API automatically.

What installer are you using?