Palupix ™ News Center the place to share about the technology, business, and lifestyle.

Subcribe our post

Enter your email address:

Monday, March 5, 2012

Installing Apache 2.4 Ubuntu 12.04/11.10/11.04

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.

Thanks to : upubuntu

Installing Apache 2.4 Ubuntu 12.04/11.10/11.04

Installing Apache 2.4 Ubuntu 12.04/11.10/11.04 was published by . We hope that information about Installing Apache 2.4 Ubuntu 12.04/11.10/11.04 very usefull for you. You can get another usefull information related with Installing Apache 2.4 Ubuntu 12.04/11.10/11.04 at our sharing post in facebook, twitter and etc.. Warm regard from us.

FeedCitrosblogDotCom

11 comments:

  1. Do not work !!

    sudo apt-get build-dep apache2.2
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut
    Statusinformationen werden eingelesen... Fertig
    E: Quellpaket für apache2.2 kann nicht gefunden werden

    ReplyDelete
  2. E: source package for apache2 can not be found

    ReplyDelete
  3. sudo /usr/local/apache2/bin/apachectl start
    AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

    ReplyDelete
  4. Does not work on 12.04.
    sudo /usr/local/apache2/bin/apachectl start
    AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

    And Server does not run after that.

    ReplyDelete
  5. to all previous comments, learn to read, write, be polite, say hello.

    Then RTFM & check your logs.

    ReplyDelete
  6. To the last anonymous: "be polite" you are kidding. You want others to be polite and are the rudest in the comments here. Haha.
    On Topic: I can read, i can write, and there is no other error in the logs, and it did not work.

    ReplyDelete
  7. worked like a charm for me. i did remove the apache 2.2.20 first!
    That was the only problem i ran into.

    thank you for the tut!
    Gator............................

    ReplyDelete
  8. Worked, thank you :)

    Only thing I had to do was uncomment:

    LoadModule slotmem_shm_module modules/mod_slotmem_shm.so

    ReplyDelete
  9. i found detailed information from here: http://www.discusswire.com/apache-2-4-installation-ubuntu/

    ReplyDelete
  10. This...

    Worked, thank you :)

    Only thing I had to do was uncomment:

    LoadModule slotmem_shm_module modules/mod_slotmem_shm.so

    ReplyDelete
  11. sudo apt-get install apache2

    https://help.ubuntu.com/12.04/serverguide/httpd.html

    ReplyDelete