NewRelic install on centos and cpanel - php

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

Related

How to install WAMP server to properly work

To my greatest surprise, my experience with PHP development starts with a REAL pain in the...installation.
I have started it with a brand new Windows 10 x64 installation.
I found a page where all the necessary informations are present to setup WAMP server (updated as of 2022-05-07): https://wampserver.aviatechno.net/?lang=en&prerequis=afficher
Unfortunately, the very much REQUIRED services are not downloadable:
Like this: http://www.microsoft.com/en-us/download/details.aspx?id=8328
There are SO questions about how to fix various installation issues...
Wait...WHAT? One of the largest ecosystem in development does not have a single setup environment?
After I downloaded the VC installers one by one, manually, I get this when starting the server:
So please verify that this is the proper, 2022 experience of using WAMP for PHP development, I'm in a bit of shock after experiencing .NET programming so far.
Can you suggest some real and working solution?
The most straightforward solution is to use a different package that creates a WAMP stack and just works perfectly after a simple install.
This package is XAMPP.
The most obvious characteristic of XAMPP is the ease at which a WAMP webserver stack can be deployed and instantiated. Wikipedia

How do I troubleshoot local php and RoR dev environments on mac osx? RoR sites are not working

I have run into problems getting my local php and rails development environments to play nicely with each other on OSX 10.7.
Developing is a hobby, and I am a total noob. I use MAMP for developing in PHP. A few months a ago I decided to give RoR a whirl, and set up a dev environment using Passenger.
A couple of weeks ago I reinstalled MAMP when I noticed I could not access the MAMP sites.
Now I can't access the RoR sites. I've tried reinstalling Passenger. I still get the error "Oops! Google Chrome could not find app.local" when I type the local URL. If I navigate to localhost, I get an "It Works!" page, so something is being served.
I have experimented with Pow. The server seems to work if I navigate to localhost, but when I go to the app I get a rake not found error. Strange, as all the gems worked under Passenger. I've since uninstalled Pow.
So I have three questions.
1) How do I troubleshoot my setup to find out what is going wrong? I'm guessing it is an issue with the Apache server (though I could be very wrong). Where should I look for log files to help resolve this?
2) What is the best way to set up a local dev environment so that I can switch easily between RoR and PHP? (I know that virtualization is an option, but would prefer not to go down this route, unless there is a very good reason to).
3) Can anyone recommend a good guide or source of info for beginners on setting up dev environments? I have read a lot of different things online, but need to get a better grasp of the basics - i.e., understanding where gem files etc are being installed, proper use of bash files, macports vs homebrew, passenger vs pow etc.
Thanks for taking the time to help a frustrated beginner.
Andy
OK, I'm going to answer my own question. I have got the rails apps running locally, but I still don't feel confident that I fully understand what's happening.
This is what I did.
Uninstalled Passenger
gem uninstall passenger
Uninstalled Passenger PrefPane by right clicking in system preference.
Updated all system gems
gem update --system
cd'd to app directory and updated all app gems
bundle update
Reinstalled Passenger
gem install passenger
passenger-install-apache2-module
Recompiled Passenger Prefpane for OSX 10.7 using xcodebuild and installed.
Deleted and readded apps to passnger prefpane.
I'm not sure what fixed it, but the apps are now running. This is what I think happened. Somehow the configuration between Passenger and Apache had become corrupt, and reinstalling prefpane added the correct lines back into the Apache config file.
The problem is that I stil don't know which Apache install Passenger is using- mac default, macports, or MAMP. I think this is what confused me before, as the config file I was checking was not the correct one.
As a byproduct, I have learned that several of my gems were not up to date or missing dependencies. This may explain the difficulties I experienced with Pow. If so, the Pow seems to be a much easier alternative to Passenger.
So, things are up and running, but I still have a long way to go before I understand how all these configuration files a working. I still don;t think I'm using the Apache install that I would prefer to use!
EDIT
PS: MAMP is also still working for PHP development, and I can easily switch between the two by disabling web sharing in system preferences, and launching MAMP. So all issues resolved for now!

Using Mamp or another package vs manually enabling PHP and installing MySQL on Mac 10.6

What are the benefits of installing mamp or another package vs enabling php in httpd.conf and manually installing mysql? I am really not sure of which option is better and would love some info.
Thanks,
MAMP and other packages are usually pre-configured and come with other tools like phpMyAdmin, SQLite Manager, SSL, code optimizers. If you think you're handy enough to do what others have done, go ahead. But it'll save you a lot of time and trouble by grabbing what's already available.
I've used MAMP for over two years now and I love it.
For me, I didn't want to configure PHP and MySQL with Apache. On my old computer I installed MySQL and then phpMyAdmin and had a lot of fun trying to get it all working. (But I'm not good with terminal and bash commands)
I installed MAMP on my new computer just because it does all the work for me. When I want to debug a php script, I just fire up my local server and make a few changes.
Imo, MAMP/WAMP = Easy get up and go in a development environment.
If you are running a business critical app, you may be better off with a LAMP stack

Installing PHP in IIS 5.1

I know there have been some similar questions to this, but they haven't helped me.
I'm trying to install Wordpress 2.8.4 on my XP box, with IIS 5.1. I installed MySQL, and found that it was possible to install Wordpress through the Microsoft Web Platform Installer. After installing Wordpress (the install worked fine), I proceeded to the next step in the Wordpress installation documentation, which is to open wp-admin/install.php in your browser. IIS seemed to not be interpreting PHP, and when searching for the best way to install it, I saw that it is also available with Microsoft Web Platform Installer, so I installed it that way. However, my IIS isn't interpreting PHP still. I do not know what the problem is, but I'm going to reboot right now and see if that helps, as I didn't reboot after the install (even though it didn't say I have to). Any help would be greatly appreciated. Thanks!
Application mapping for .php extension to x:\php5\php-cgi.exe is needed.
Open properties dialog box of IIS's Default Website, and perform extension mapping.

Best PHP download to keep all my options open?

In the past, I used WAMPserver on windows to parse PHP for me. This is a pre-configured package, focussed on working with MySQL.
When I tried to run PostgreSQL, I got error messages that said that my version of PHP wasn't compiled to work with PostgreSQL.
So, I've recently uninstalled WAMP and every associated with it. I've downloaded Apache 2.2.11 with openSSL, installed as admin(you know, run the command prompt as administrator, cd to the directory where the download was done and have it executed, so the install was done as admin).
That's that. I now have Apache installed, "it works" shows up, so I'm that far.
Now I'm wondering, do I download the exe and install, or the zip, or something else.
What is the best thing to do to make sure that the PHP on my system can handle everything I can ever throw at it?
Also, PHP first, or MySQL/Postgre first.
And lastly, what about PEAR? I need PEAR installed, which isn't standard on Windows. I'm guessing the pear.bat file in the PHP downloads will do that for me?
EDIT: I see one close vote, yet no comment as to why. It makes me wonder how people who are so lazy and rude got to have somany points.
I would recommend downloading the zip package, as configuring php is not really that difficult, and it allows you to add features as needed.
As for whether first to install php or MySQL/PostgreSQL, - it does not really matter. You can install them in any order.
Your guess regarding PEAR is quite correct
i haven't used wamp before, so i can't comment on that
i do however use xampp which sounds very similar
in xampp if i want to enable postgres support i edit the php.ini file and uncomment the postgres section of the ini file, same with any of the extensions that i need
perhaps this might be an alternative you can try if you get stuck
There are many ways to setup a HTTP server/PHP/database machine. Sometimes the behaviour of your development setup will differ from the live server's.
I would recommend finding out the setup your web host is using, then getting a vmware appliance image that fits that as close as possible and get any additional software using it's package manager (which is easier that installing stuff on Windows).
Setup a file sharing link between the VM and the host, make sure you can view the VM's port 80 in a browser running in your host OS and you're set.

Categories