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.
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.
Tweet
Do not work !!
ReplyDeletesudo 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
E: source package for apache2 can not be found
ReplyDeletesudo /usr/local/apache2/bin/apachectl start
ReplyDeleteAH00558: 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
Does not work on 12.04.
ReplyDeletesudo /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.
to all previous comments, learn to read, write, be polite, say hello.
ReplyDeleteThen RTFM & check your logs.
To the last anonymous: "be polite" you are kidding. You want others to be polite and are the rudest in the comments here. Haha.
ReplyDeleteOn Topic: I can read, i can write, and there is no other error in the logs, and it did not work.
worked like a charm for me. i did remove the apache 2.2.20 first!
ReplyDeleteThat was the only problem i ran into.
thank you for the tut!
Gator............................
Worked, thank you :)
ReplyDeleteOnly thing I had to do was uncomment:
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
i found detailed information from here: http://www.discusswire.com/apache-2-4-installation-ubuntu/
ReplyDeleteThis...
ReplyDeleteWorked, thank you :)
Only thing I had to do was uncomment:
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
sudo apt-get install apache2
ReplyDeletehttps://help.ubuntu.com/12.04/serverguide/httpd.html