4

I have a PHP app on Heroku that keeps giving an Application Error randomly, and the logs don't say anything at all. I can't be sure but it seems that the error comes when 6-8 concurrent users hit the app. To figure this out, I thought of installing the New Relic Add On, and I have been trying to follow the document here - https://rpm.newrelic.com/accounts/343400/applications/setup.

Please excuse my limited knowledge, but it seems that the instructions given here are supposed to be run on an actual server ? How can I run them for my Heroku server ? I use a windows machine. I have installed wget for windows, but then apt, deb ?

There are other discussions about this where people have mentioned that new relic is not supported on Heroku, but those are at least an year old. And Heroku is providing New Relic as an Add On.

Can anyone please help...

4 Answers4

3

As of September 2014, New Relic PHP does support running on Heroku using the official Heroku PHP buildpack.

See:

New Relic documentation

Heroku documentation

Aaron Heusser
  • 340
  • 2
  • 7
0

I can't really give you an answer on this because we are currently in testing phase so we don't have concurrent users yet.

If you are using the official php buildpack from Heroku (if you've never heard of a buildpack you probably are) it's probably best that you ask their support as it might be a bug on their side. If you're using your own buildpack you can find an example of a working Heroku/PHP/Newrelic buildpack here:

https://github.com/iphoting/heroku-buildpack-php-tyler

We haven't experienced the same problem with the above buildpack.

Brad Koch
  • 19,267
  • 19
  • 110
  • 137
kidk
  • 93
  • 1
  • 9
  • Thanks for answering, I am using the official php buildpack. I needed help with installing new relic. So I will have to have my own buildpack to achieve it ? There is no direct way of installing ? – Manish Nasa Jun 15 '13 at 06:33
0

At the moment, PHP on Heroku is unsupported by New Relic. See this SO question for more: Deploying New Relic on Heroku Cedar (PHP)

Community
  • 1
  • 1
Scalayer
  • 1,217
  • 9
  • 6
  • 2
    thanks, I did see that question earlier. But since the answer was 2 years old, I asked again - in case anything has changed. Especially because Heroku is now officially offering New Relic as an Add On. – Manish Nasa Jun 16 '13 at 06:47
0

New Relic does not officially support our PHP agent on Heroku. Here's the current list of supported languages:

https://devcenter.heroku.com/articles/newrelic#supported-languages-and-frameworks

The setup requires the installation of a PHP extension and a local proxy daemon, which tends to require a bit more access to the app server. If you have any tips, please share them here -- just keep in mind that we cannot support it.

KrisNR
  • 16
  • 1