daladim
Posts: 5
Joined: Fri Aug 29, 2014 1:03 pm

How to install the LATEST Apache version?

Fri Aug 29, 2014 1:11 pm

Hi everyone,

I have just made a fresh install of Raspbian on a new SD card, and I have just installed Apache.

Code: Select all

apt-get install apache2 apache2-doc apache2-utils
However, it does not seem to be the latest version. According to the Apache homepage, the latest version is 2.2.27 (released 2014-03-26). But I have only installed 2.2.22 (info given by apachectl -v).
apt-get update and apt-get upgrade do not change anything.

So here are my questions:
1. Is there a way to install the very latest version (the Apache's changelog states that several security fixes have been made between 2.2.22 and 2.2.27). If possible, I'd like to do it through apt-get rather than by compiling the sources myself.
2. Why doesn't apt-get install the latest version automatically? Is there no ARM version of Apache 2.2.27 in Rapsbian repos (yet)? Is it not supported (yet) by Raspbian? If so, why?

Thanks for your help and your explanations, that will help me improve in knowing the Raspi system even better :)

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: How to install the LATEST Apache version?

Fri Aug 29, 2014 4:06 pm

In order to get the latest Apache, you need to get it from git and compile it yourself. The reason the latest version is not in the repo, is because it takes time for people to compile the latest and upload it to the repo. The version in the repo is recommended even if it is older.
There are 10 types of people: those who understand binary and those who don't.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to install the LATEST Apache version?

Fri Aug 29, 2014 7:28 pm

Also, as Raspbian is based on Debian Linux, all the security patches are applied to the old version, which is why the full version of Apache in Raspbian is 2.2.22-13+deb7u3. The +deb7u3 means "Debian version 7 (Wheezy) with security updates number 3".

daladim
Posts: 5
Joined: Fri Aug 29, 2014 1:03 pm

Re: How to install the LATEST Apache version?

Mon Sep 01, 2014 10:01 am

OK, great!
Thanks for your replies. I actually found the changelog for the very latest Debian version I installed (in /usr/share/doc/apache2/README.Debian.gz). Just like you said, it does state that recent security updates are included :) (I compared with the raw Apache changelog at http://mirrors.ircam.fr/pub/apache//httpd/CHANGES_2.2)

It is still not obvious to me why, depending on the distro, there must be so many differences between versions of the same package, but I guess there are good reasons that I don't get yet!

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to install the LATEST Apache version?

Mon Sep 01, 2014 10:20 am

https://packages.debian.org/wheezy/apache2

This is the version as stated in official Stable Debian Wheezy Repository, Linux Distros which are based off Debian ie Raspbian, Ubuntu etcetera will likely maintain there own repositories and therefore will quite often compile packages which are newer and also fix any dependecies issues.

Debian Wheezy Testing ie Debian 8 lists a later Apache Version but this is in testing stage and may break your system

https://packages.debian.org/jessie/apache2
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Return to “Raspberry Pi OS”