I have installed the latest version of Apache i.e., 2.4 on my Ubuntu 12.04 that is not yet available on the Ubuntu's official repository.

I don't know how but it is installed in /usr/local/apache2

But the issue is that I want to know if I should use Apache 2.4 for my production environment. My production server also runs on Ubuntu Server edition. Will it cause any problems like compatibility issues?

Or should I go with the older version of Apache server? Please Help.


It really depends on why you wanted to use the latest version in the first place. In the case of a product like Apache, the version that is available via the official repository will continue to get security updates during its life cycle, so that is not a reason to install the very latest version.

I would always advise using officially packaged versions of software - either from Ubuntu or direct from the vendor if they have their own repository, unless you have a very good reason not to such as a new feature you cannot live without. Not only will it save you a lot of effort, but also you are also more likely to keep your production server up to date with security updates because they will be made available for easy installation via apt-get.

It is normally preferable to use the same version of the software for development as you are using for production to avoid compatibility issues; you could read the new features list to see if there are any changes that might affect you, but sometimes it is only possible to find out the hard way by testing.

  • Exactly. Only divert from official repository versions in case you have valid reasons. The question does not mention why, so advising the official repository version is the right thing here. – gertvdijk Jun 19 '13 at 16:40
  • @ David, gertvdijk : Thanks for the help, I was thinking to install Apache 2.4 as it is a stable version and also it will be more patched up as a security point of view. Any comments? – Tarun Jun 20 '13 at 5:00
  • Also how can I remove the installed apache 2.4 I dont think apt-get remove will work. – Tarun Jun 20 '13 at 5:29
  • Apache 2.2 is still supported by the Apache Software Foundation; as far as I am aware they have not announced an end of life date yet. It continues to get security updates, which are made available through the official Ubuntu repositories (see the Change Log on packages.ubuntu.com/precise/apache2). So until Apache 2.2 or Ubuntu 12.04 LTS reaches end of life, Apache 2.2 will be just as patched up as 2.4. The key difference is that with 2.4, you will need to look out for new releases and rebuild from source periodically whereas updates for 2.2 will come easily via apt-get. – David Edwards Jun 20 '13 at 7:40
  • Try make uninstall in your original build directory. See askubuntu.com/questions/87111/…. – David Edwards Jun 20 '13 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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