Has anyone succesfully deployed the New Relic addon to a PHP app running on Heroku Cedar stack? I'm running a fairly high traffic Facebook app on a few dynos and can't get it to work.
The best info I can find details a Python deployment: http://newrelic.com/docs/python/python-agent-and-heroku
Thanks!
Heroku has just recently rolled out support for PHP with Cedar and we at New Relic don't know anything more than you do. We'll be talking with Heroku ASAP to get some docs developed which will certainly be on (New Relic's knowledge base), and I'll report back here as well.
Edited to add:
Sorry for the long delay in me checking back in. Unfortunately this is still not possible in a well-supported way, reason being that our php agent requires a standalone daemon to be running in addition to the dyno that is serving your content. While you can find terrible hacks to get you into the space where you could fire up the daemon temporarily, it's not sustainable and won't port to the next dyno that spins up. This means that we can't support you running the agent in this environment.
Edited to add:
As #aaron-heusser mentioned, support is finally official as of a month or so ago: https://github.com/heroku/heroku-buildpack-php
Note: I work at New Relic.
As of September 2014, New Relic PHP does support running on Heroku using the official Heroku PHP buildpack.
See:
New Relic documentation
Heroku documentation
Related
So I am fairly new to PHP and websockets and server management in general. But have been tasked with designing a web-app and have determined that the best way to implement this is with websockets. So I found ratchet. And began trying to get it to work. I have a linuxbox with apache already setup, and created a new directory in the webroot and began Ratchet's tutorial. However no matter what I did I could not get even the in-line telnet part working.
I have a composer.phar, I have their script within my composer.json, I followed their instructions for installing ratchet. however when I run the php chat_server.php command it doesn't seem to do anything. The tutorial states that it should take control of the console, and as I saw in a video tutorial it does.
So my ultimate question is - what is causing this not to run properly? Is it a bad installation (Did I mess up installing somewhere or just not install something that is required but was not explicitly stated?) all the code is identical to what is documented here http://socketo.me/docs/hello-world
Some questions when ratchet is not functioning while setting it up.
Is the php process (#php chat_server.php) open?
Are you telnetting from another cli?
can you check if the port on which the chat server should be running is allocated?(#netstat -pln)
Is the zmq library added to the apache modules? (Probably your problem)
If the above aren't working you might try to check if some firewall is blocking the connection internally.
I would suggest starting from a clean machine to execute all set up steps.
I'm using a PHP instance within IBM Bluemix.
Now we are posting raw data from about 200 external devices to a PHP instance.
This rawdata is small (1 or 2 KB), but it sends every 4 to 5 seconds.
If I'm using the standard PHP buildpack, I see that the webpage sometimes won't respond. (It looks like it is waiting for a free client connection.)
Could anybody tell me which PHP buildpack is the best buildpack for using in PHP instance?
The PHP instance within IBM Bluemix is the opensource cloudfoundry php-buildpack buildpack. You can try the current version of the buildpack to see if your issue is resolved. For example if you would like to use the latest version you can push your app with:
cf push yourAppName -b https://github.com/cloudfoundry/php-buildpack.git
If you need further help please include code examples, logs and anything else that can help with debugging your issue.
Assuming that the problem is related to the used buildpack, you could take a look at Heroku buildpack: PHP. It uses Composer for dependency management, supports PHP or HHVM (experimental) as runtimes, and offers a choice of Apache2 or Nginx web servers.
You could try this buildpack as an alternative to the default one. I suggest you to test both the web servers to see if you notice different performances with the load spikes.
If the problem persists I think you should do a deeper performance investigation. You could also use one of the services provided by Bluemix in the DevOps catalog.
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...
As of September 2014, New Relic PHP does support running on Heroku using the official Heroku PHP buildpack.
See:
New Relic documentation
Heroku documentation
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.
At the moment, PHP on Heroku is unsupported by New Relic. See this SO question for more: Deploying New Relic on Heroku Cedar (PHP)
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.
I'm trying to install NewRelic on my website, I use PHP, cPanel(VPS/dedicated) and Centos (64bit) for my server, I've installed the server monitoring part right on my server but when I try to install the 'app' part on my server I can't get that to install, I followed the instruction links http://newrelic.com/docs/php/new-relic-for-php
but to no success, has anyone got any ideas as to why this maybe? I have restared httpd and appache multiple times and given it some time to propogate etc..
The problem of this is having WHM installed and many PHP services installed, you should try this guide I found:
New Relic for PHP w/cPanel
We have few dedicated servers on HostGator. Few months back we had installed "NewRelic" on our server for monitoring, later we started having issues and here is what HostGator Tech Team said
"While it's possible to configure a cPanel server to use a non-cPanel
PHP version, it's complicated to configure and we will not support it
or set it up. PHP gets compiled from source by cPanel normally and it
should be left this way, as it interacts with a number of other
components on the server in complicated ways, as you found out today.
We recommend completely removing the custom "Newrelic" repository as
well as the packages it installed in order to avoid further
compatibility problems."
and here is what "NewRelic" team said
"I wasn't trying to suggest that Hostgator's assertion was wrong. I
was just trying to figure out which instructions to go over with you."
Make sure to check compatibility before installing it. Installation instruction can be found at http://www.networkredux.com/answers/view/Hosting/Control_Panels/WHM/cPanel/162
New Relic Needs to document this cpanel compatibility better, I know it's my fault for not researching but while using a hostgator dedicated server with cpanel/whm I got new relic up and running. . then my server became a huge mess if improperly configured files and a few days of reading and learning to get it straightened out - I understand my fault entirely but a big ass CPANEL/WHM <- CAREFULL sign might have helped :P
Me and two friends want to build something in common in PHP, probably all of us are going to use eclipse for that, but some use Ubuntu and some use Windows.
Is there any convince and good why to share the code and develop together freely? Thanks!
And we don't want our project to be open source in this case :(
You can probably use a Subversion (SVN) or Git repository. These are tools that enable several developers to work on the same project at the same time, managing conflicts and versions of the code.
For free solutions, please see:
https://stackoverflow.com/questions/59791/free-online-private-svn-repositories
https://stackoverflow.com/questions/2378120/is-there-a-free-private-git-repository
How to install Subversive, a free Subversion client for eclipse: http://www.eclipse.org/subversive/documentation/gettingStarted/aboutSubversive/install.php
Depending on your platform, i would recommend following:
SVN Provider:
SpringLoops (Ref. Link)
I've been with them for 2.5 years now, blazing fast support. It has some rock-solid features like auto remote deployment so if you commit it instantly deploys to the remote server so you have the actual version running on the FTP too.
As far as i can tell you, KEEP AWAY from BeanStalk as provider, they are copying SpringLoops and have roughly the same features but theirs work very very slow. There are waiting times for remote deploy of 120 seconds in average.
Mac OS X:
I've extensively used Versionsapp from Sofa but in the last 2 years it did not receive any (major) update at all so i purchased CornerStone and it's working very very good. You can keep track of anything that happens to the repository.
Windows:
If you are using windows, i would work with tortoisesvn which works with the windows Shell so you give the commands via the shell menu. It's easy to use and is developed since a very long time.
If you have any questions write a comment and I'll update my answer :)
I think bitbucket is a great solution for sharing a small project with your friends and make it privately for free.
https://bitbucket.org/