The Apache HTTP Server is a web server software that has a big role in the development of the World Wide Web. The latest version for this HTTP Server is Apache 2.4 which comprises more improvements in terms of functionality and performance. Here are some of the novelties in this latest release:

  • Reduced memory usage compared to Apache 2.2.x
  • Significant improvement in terms of performance
  • KeepAliveTimeout in milliseconds
  • Override Configuration
  • Event MPM fully supported
  • New General-purpose expression parser
  • Config file variables, etc.
You can find here all new features for Apache 2.4 with details. Since there is no PPA to install Apache 2.4 under Ubuntu currently, we will try to install it from source. To be able to configure and build successfully Apache 2.4 source, you need to install first these dependencies:

sudo apt-get install build-essential


sudo apt-get build-dep apache2

Then install Apache 2.4 with the following commands:

wget -O httpd-2.4.1.tar.gz http://goo.gl/il2Va


tar -xzvf httpd-2.4.1.tar.gz && cd httpd-2.4.1


sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --with-mpm=prefork


sudo make


 sudo make install

To start Apache, run this command:

sudo /usr/local/apache2/bin/apachectl start

Then open this link into your web browser:

http://localhost/

or

http://127.0.0.1/

If you get this message: "It works!" then your installation is successful. You can then stop Apache with the following command:

sudo /usr/local/apache2/bin/apachectl stop

  Note: This tutorial is operational for Ubuntu 12.04/11.10/11.04 or older.

 
Top