Ubuntu – Upgrade Apache 2.2.22 to 2.2.26 on Ubuntu 12.04 LTS

apache-2.2Ubuntuubuntu-12.04

I've been scouring the internet for what should be a seemingly simple process, but I can't seem to get this to work.

I currently have Apache 2.2.22 running on my Ubuntu Server, and I simply need to upgrade to the latest release. Ubuntu has not updated their repository yet, so I can't use apt-get (sadly).

I found this post detailing how to install 2.4.3 from a .tar.bz2 so I figured I would try that. I uninstalled Apache 2.2.22 and followed all the steps (but used a .tar for 2.2.26 of course).

When I run /etc/apache2/bin/apachectl start, it doesn't complain, but the web server doesn't appear to be working. Going to website just results in Chrome saying "The page could not be displayed". No error 500, nothing. (I should note I ran configure like this: ./configure --prefix=/etc/apache2)

Running service apache2 start simply results in it saying No Apache MPM Package Installed.

Any ideas on how to perform this update?

Best Answer

Debian/Ubuntu package apps like Apache differently from the Red Hat world, and Suse and others may be different again. I see there aren't any Ubuntu deb packages or RH rpms beyond 2.2.22 but that Apache has a 2.4.7. So Ubuntu, RH, and Apache src build will probably put configurations in different places, and indeed, change the things are handled ( like mods for instance).

So once you save off your configuration, I'd purge apache to delete files, making sure the daemons are not running, and everything really was deleted. Then build the src from Apache.

The problem with this is that you won't easily be able to upgrade later, so you'll have to judge your level of patience and actual need for the upgrade before you embark.

Related Topic