Apache load balancing and failover

October 5, 2012 in Web Server

Apache load balancing and failover with pound

What is server load balancing?

Load balancing is a way to split all the income requests, to more than 2 servers. You must have a load balancing when you have a lot of income requests that a server can not handle. If you have for example a web site with a lot of visitors that a single server will not be able to handle, you must split the traffic to 2 or more web servers.  In this tutorial i will use 2 web servers and a load balancing server to redirect the http request.

What is server failover?

If you have a web site in a web server and you want for example to close this server for maintenance reasons or if your server due to a technical reason stop operating, your website will be offline until you fix this problem! Fail over is a way to automatically redirect the incoming requests for your website to another web server.

In this tutorial you will find an easy way to load balancing and failover using pound. Pound is an open source reverse proxy that can handle load balancing and failover with a strong emphasis in security.

Lets say that you have a static ip (i will use a non-existing IP 145.47.82.256), a domain name (allaboutlinux.eu) for your website, a webserver (with internal IP 192.168.0.250) and a router (configured to redirect all the incoming requests for port 80 to 192.168.0.250). If you have all the above its easy to create a public website hosted on your webserver. But this server has no failover or load balancing since its a single server.

 

If you need failover and load balancing you will need one more server with a replica of your website and a server that will handle the load balancing and fail over. Lets start creating the Pound server!

How to install Drupal 7 on ubuntu

June 26, 2012 in CMS

How to install Drupal 7 on ubuntu Part 1

This is a full article on how to install Drupal on Ubuntu, that means you can use this guide even if you have a clean installation of Ubuntu, and I will try to keep it as simple as I can.

What you will need in order to install Drupal.

First of all you will need a LAMP Server(more information can be found here).

1. You have to install a Linux system(you can choose whatever you want. A guide on how to install Ubuntu can be found here).It doesn’t really matter if you choose a desktop or server edition but if you are planning to publish your Drupal website I strongly recommend to use a server edition of Ubuntu for example.

2. You will need Apache (more information can be found here)

3. You will need MySQL (more information can be found here)

4. You will need PhP (more information can be found here)

5. And last but not least you will need to download Drupal from official site.

Let’s go to the next Part and install Lamp

How to install WordPress 3.3 on ubuntu 11.10

March 20, 2012 in CMS

How to install WordPress 3.3.1 on Ubuntu

This is a full article on how to install WordPress on Ubuntu, that means you can use this guide even if you have a clean installation of Ubuntu, and I will try to keep it as simple as I can.

What you will need in order to install WordPress.

First of all you will need a LAMP Server(more information can be found here).

Lets set up our LAMP Server.

1. You have to install a Linux system(you can choose whatever you want. A guide on how to install Ubuntu can be found here).It doesn’t really matter if you choose a desktop or server edition but if you are planning to publish your WordPress website I strongly recommend to use a server edition of Ubuntu for example.

2. You will need Apache (more information can be found here)

3. You will need MySQL (more information can be found here)

4. You will need PhP (more information can be found here)

5. And last but not least you will need to download WordPress from official site.

Let’s go to the next Part and Install Lamp

Joomla 2.5.3 on Ubuntu

March 17, 2012 in CMS

How to install Joomla 2.5.3 on Ubuntu 11.10 Part 1

This is a full article on how to install Joomla on Ubuntu, that means that you can use this guide even if you have a clean installation of Ubuntu, and i will try to keep it as simply as i can.

What you will need in order to install Joomla

First of all you will need a LAMP Server(more information can be found here).

Lets set up our LAMP Server.

1. You have to install a Linux system(you can choose what ever you want. A guide on how to install Ubuntu can be found here).It doesn’t really matter if you choose a desktop or server edition but if you planning to publish your Joomla website i strongly recommend to use a server edition of Ubuntu for example.

2. You will need Apache (more information can be found here)

3. You will need MySQL (more information can be found here)

4. You will need PhP (more information can be found here)

5. And last but not least you will need to download Joomla from official site.

Lets start by installing Lamp:

LAMP

March 16, 2012 in Services

how to install LAMP on Ubuntu

What is LAMP?

LAMP is stand for Linux, Apache, Mysql, and PhP. Lamp is need it by the most popular cms like Drupal, Joomla, WordPress, etc. In order to install successfully one of those cms you have to install LAMP first.

How to install Lamp.

There is no specific way to install lamp. You can install one component at a time or you can use tasksel to install all of them at once. In order to install every component manually you have to follow the instructions on how to install every single one by clicking the following links: Apache, MySQL, PhP.

But here i will saw you an easier way to that, using tasksel!

Read the rest of this entry →

Tasksel

March 14, 2012 in Tasksel

Tasksel

what is Tasksel?

Tasksel is an easy way to install services in your system. It is something like Synaptic package manager but it can be used from terminal and even if you don’t have any graphic user interface.

How to use Tasksel

You can access tasksel from the terminal

Read the rest of this entry →

Install Apache web server in Ubuntu

February 15, 2012 in Apache

Install Apache web server in Ubuntu / Debian

What is apache?

Apache is the most popular web server on the internet. It is highly configurable with third party modules, can run under several Operating Systems including Ubuntu and its very secure and stable. That is why more than 50% of websites currently running on the internet have an Apache server behind them.

How to install Apache on Ubuntu 11.04

You can install Apache2 from the Terminal by using:

$> sudo apt-get install apache2

when the installation is finished Apache is up and running and you can test that by point your web browser to http://localhost/

Read the rest of this entry →