Apache 2.2 on Ubuntu 14.04

23Jul15

Apache 2.4 changes things a lot – particularly around authentication and authorisation.

I’m not the first to run into this issue, but I didn’t find a single straight answer online. So here goes (as root):

# add Precise sources so that Apache 2.2 can be used
cat <<EOF >> /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu precise main restricted universe
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
EOF
# install Apache 2.2 (from the Precise repos)
apt-get install -y apache2-mpm-prefork=2.2.22-1ubuntu1.9 \
  apache2-prefork-dev=2.2.22-1ubuntu1.9 \
  apache2.2-bin=2.2.22-1ubuntu1.9 \
  apache2.2-common=2.2.22-1ubuntu1.9

If you want mpm-worker then do this instead:

# add Precise sources so that Apache 2.2 can be used
cat <<EOF >> /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu precise main restricted universe
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
EOF
# install Apache 2.2 (from the Precise repos)
apt-get install -y apache2=2.2.22-1ubuntu1.9 \
  apache2.2-common=2.2.22-1ubuntu1.9 \
  apache2.2-bin=2.2.22-1ubuntu1.9 \
  apache2-mpm-worker=2.2.22-1ubuntu1.9


No Responses Yet to “Apache 2.2 on Ubuntu 14.04”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: