Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a debian and when i try to install apache2.4 with

apt-get update
apt-get install apache2

I have the version 2.2, anyone know how to install the 2.4 ?

share|improve this question

If you really need apache 2.4 I would recommend using jessie altogether for your machine's distribution instead of wheezy if possible to avoid having a mixed sources environment which would put you in a less-commonly used and less supported configuration.

Otherwise if there is a specific reason that makes you want to use 2.4 perhaps there's a workaround to update your php files or other to make it work in apache 2.2 and stay on wheezy.

But if you really want to go into a mixed sources environment it's possible using apt pinning, that will involve 2 steps:

  • Adding sources of jessie to your /etc/apt/sources.list
  • Adding a pinning preference in /etc/apt/preferences

Here's more information about it:

Note that you might be faced with new apt dependency issues as your machine updates evolve and you install apache modules with mixed dependencies to 2.2 or 2.4. If it's an acceptable complication for your needs you could go ahead with it.

share|improve this answer

Apparently there are Apache 2.4 Backports for Debian wheezy and squeeze

It is also possible to use the packages from jessie on wheezy.

share|improve this answer
As has been noted by an anonymous contributor, the linked document refers to packages that the author backported - they are not vanilla jessie packages after all. – Felix Frank Jul 14 '14 at 6:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.