Install MySQL plugin for Newrelic in a Minute

To use this plugin, you must have: a Java Runtime Environment (JRE) of 1.6 or higher at least one database to monitor (MySQL 5.0 or higher) a New Relic account New Relic Platform Installer (NPI) is a simple, lightweight command line tool that helps you easily download, configure and manage New Relic Platform Plugins Plugin […]

Install Newrelic Agent for PHP in a 1 minute

Install NewRElic PHP Plugin for Amazon LINux Create newrelic account on web and get the License number. sudo rpm -Uvh sudo yum install newrelic-php5 sudo newrelic-install install vim /etc/php.ini newrelic.license=”4b3abfeda5336ecf68″ /etc/init.d/httpd restart Install System Monitoring NewRelic rpm -Uvh yum install newrelic-sysmond nrsysmond-config –set license_key=4b106d772c3115f649 /etc/init.d/newrelic-sysmond start

OpenVpn Setup

Server Configuration Step 1 : Install the OpenVPN package $yum install openvpn -y Step 2 : OpenVPN ships with only a sample configuration, so we will copy the configuration file to its destination: $cp /usr/share/doc/openvpn-*/sample/sample-config-files/server.conf /etc/openvpn Step 3 : Download the easy-rsa from git $wget $unzip $mv easy-rsa-release-2.x/easy-rsa/2.0 /etc/openvpn/ Step 4 : Edit […]

Enable XForwarded-For on Apache

The HTTP requests and HTTP responses use header fields to send information about the HTTP message. Header fields are colon-separated name-value pairs that are separated by a carriage return (CR) and a line feed (LF). A standard set of HTTP header fields is defined in RFC 2616, Message Headers. There are also non-standard HTTP headers […]

Apache source compilation on Amazon Linux

Install C Compiler yum install gcc Installing APR wget “” tar xvzf apr-xx cd apr-xx mkdir /usr/local/apr ./configure –prefix=/usr/local/apr make make install Install APR-Util wget “” tar xvzf apr-util.xx cd apr-util.xx mkdir /usr/local/apr-util ./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr make make install Installing C++ Compiler yum install gcc-c++ Install PCRE wget “” tar xvzf pcre.xx cd pcre-.xx mkdir […]

Install/Upgrade a PHP Module/Driver

Upgrading php Mongodb module from 1.4.2 to 1.4.5 Download the Tar Ball $ tar zxvf mongodb-mongodb-php-driver-.tar.gz $ cd mongodb-mongodb-php-driver- $ phpize $ ./configure $ make all $ sudo make install Make the following changes to php.ini: Make sure the extension_dir variable is pointing to the directory containing The build will display where it is […]