Monthly Archives: September 2012

Install WordPress Locally on Windows 7 with Xampp

Before starting this tutorial, please make sure that XAMPP is installed on your windows machine, if you need any help, check this tutorial.

Download the latest version of wordpress from

Read more of this post


How To Install WordPress in Ubuntu Server 12.04 LTS

Install the LAMP Server (Linux,Apache, Mysql, PHP) with the command below:

sudo apt-get install lamp-server^

It will prompt for mysql server root password, enter the root password:

Read more of this post

Apache Virtual Hosts in Ubuntu

In this tutorial, I’ll show you the steps to configure 3 Apache virutal hosts running on a single EC2 Ubuntu Instance. The three domains, that I’ll use in this tutorial are:


DNS setting for these 3 domains are as follows:

Read more of this post

How to connect a domain name to an EC2 instance

 Launch an EC2 instance and set up the web server (In my case, I setup the Ubuntu12.04 instance and install the Apache web server on it):

At this point my website is up and running but with the long amazon url(i.e.

Read more of this post

How to add static DNS in Ubuntu 12.04 LTS

Please refer to this tutorial for adding the static ip address in Ubuntu 12.04.

Ubuntu 12.04 use resolvconf(a set of scripts and hooks) instead of resolv.conf to manage DNS server. The most notable difference for the user is that any change manually done to /etc/resolv.conf will be lost as it gets overwritten next time something triggers resolvconf.

To add the static dns entries in resolv.conf file,edit /etc/resolvconf/resolv.conf.d/base:

sudo nano /etc/resolvconf/resolv.conf.d/base

Read more of this post

How to block video streaming with Squid

In office like Software House, they can’t ban the facebook because many of the web application using facebook login to register an account and has been used many FB api for showing FB updates in their platform. But sometimes,they are worry about the bandwidth that their users waste in watching videos on facebook. So, this is a solution for those people 🙂 (With this they can block about 95% videos)


In this scenario, Mikrotik will work as dhcp, dns, and default gateway for local network. Ubuntu 12.04 with 2 NICs installed (eth0, eth1). We’ll assume eth0 will be the connected to the gateway, and eth1 will be connected to the switch.

Install the squid3,  ebtables  and bridge-utils with the following command:

sudo apt-get install squid3 ebtables bridge-utils

Read more of this post

SVN Server on Ubuntu with https access

To install SVN server, run this command at the command prompt:

sudo apt-get install subversion apache2 libapache2-svn

Verify the installed version of Subversion software:

svn --version

Read more of this post

Fixing httpd: [warn] module php5_module is already loaded, skipping

I have a CentOS webserver with the Apache and PHP installed on it and it works perfectly but when I restart the Apache service, I get this error:

[warn] module php5_module is already loaded, skipping

To solve this problem, I have to verify this module load call in two files and need to remove/comment from one of these file.

First, I need to check Apache main file:

sudo nano /etc/httpd/conf/httpd.conf

Read more of this post

Simple failover cluster using UCARP on Ubuntu

In this tutorial, I’ll show you the steps to create a simple failover cluster on Ubuntu using CARP. To make the things meaningful,we’ll create the cluster for Apache service but you can use it for any other service, which relay on IP.


Here is my Setup:

PrimarySrv: This is the main server, where I configured the apache and which act as Master (IP:
SecondarySrv: 2nd Apache Server where I configured the apache exactly like on PrimarySrv (IP : : Virtual IP address,created using Ucarp.

Ucarp is really simple, it works like this,when the PrimarySrv is up,it will assign the virtual IP to it, in case that PrimarySrv is down then it will assign virtual IP to the SeconadrySrv and when the PrimarySrv will come online, it will assign the virtual IP once again to it.

I assume that you configured Apache server already according to the above scenario, Let’s test it for PrimarySrv:

For SecondarySrv:

Read more of this post

%d bloggers like this: