Overwrite File with multi-line text

append text to end of file with cat

January 17, 2013

Objective: Append multiline text with cat Examples Replace contents of /etc/apache2/mods-available/geoip.conf cat <<‘EOF’ > /etc/apache2/mods-available/geoip.conf <IfModule […]

install geoip php centos

January 11, 2013

To install geoip php centos follow these steps Install Steps # cd /tmp # wget http://pecl.php.net/get/geoip-1.0.8.tgz […]

Install Django centos redhat

November 8, 2012

To install Django on Centos or Redhat echo “Installing httpd and httpd-devel” yum -q -y –enablerepo=ius […]

Install Python 2.7.2 redhat centos

November 8, 2012

To Install Python 2.7.2 on redhat or centos echo “Install Python 2.7.2” mkdir -p /usr/local/src/python.2.7.2.install cd […]

install varnish centos redhat

November 8, 2012

To install varnish on centos or redhat #!/bin/bash echo “Adding Varnish Repository and installing varnish” rpm […]

install rabbitmq-server redhat centos

November 8, 2012

To install rabbitmq-server on redhat or centos wget -O /root/rabbitmq-server-2.8.7-1.noarch.rpm http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.7/rabbitmq-server-2.8.7-1.noarch.rpm rpm –import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc yum install […]

curl test https redirect

October 30, 2012

Testing an https redirect In this example we will be testing an https redirect via curl […]

sed delete all lines after

October 26, 2012

Objective: Prep dev httpd.conf for production Tasks: Remove jenkins virtual host entry (which starts with a […]