How to upgrade Apache 2.2.15 to 2.4.4 in CentOS
-
I want to upgrade Apache from 2.2.15 to 2.4.4 in CentOS. Do I need to download update files to a folder and update Apache? Is this even possible?
-
Answer:
CentOS 6.x does not provide 2.4.x, only 2.2.x versions of Apache. CentOS like the Red Hat OS it derives from, RHEL are geared towards stability and so tend to lag behind what's cutting edge. So you'll need to either: compile it yourself find source RPMs and rebuild/recompile them find a repository that already has it pre-built in RPM form find pre-built binaries not in an RPM (often installed to /opt) Rolling it yourself There are numerous tutorials online for compiling Apache 2.4.x from scratch yourself on CentOS 6.x, here's one such: http://jasonpowell42.wordpress.com/2013/04/05/install-apache-2-4-4-on-centos-6-4/, that shows how. You can also try http://httpd.apache.org/docs/current/platform/rpm.html, it includes a RPM .spec file so you can rebuild it like so: $ rpmbuild -ts httpd-2.4.x.tar.bz2 I wouldn't expect to get too far with that approach however, since you'll likely need several other packages which are a bit tricky to come by on CentOS 6.x, without rebuilding them too. Finding a repo I would likely encourage you to not try and build it yourself unless you're really curious how to do it. I've done it and it's doable but can take some time and can be a bit frustrating at times. Rather I'd encourage you to simply use the Remi Collet Repository that has it already built for EL6 (That's RHEL 6 & CentOS 6). Remi's site provides https://fedorahosted.org/SoftwareCollections/, and you'll want to use the http://repos.fedorapeople.org/repos/jkaluza/httpd24/. All that's needed is to install the .repo file from that URL and do a yum update. This will bring your stack up from 2.2 to 2.4. NOTE: The software collections (SC's) provided by Remi Collet's site are somewhere between options #3 & #4. I say this because they're distributed as RPMs but the software is installed into the directory /opt. So you'll be able to migrate your sites to 2.4, rather then just jumping directly to it, which IMO is a good thing. However you'll have to reconfigure things in order to make use of the installed version of Apache 2.4!
user3422709 at Unix and Linux Visit the source
Related Q & A:
- How to start Apache Solr automatically?Best solution by stackoverflow.com
- How to Upgrade 3g Jailbreak iPhone 2.2 to 3.0 firmware?Best solution by Yahoo! Answers
- What will be the difference in sound If I were to power my subwoofers with 2 ohms instead of 4 ohms?Best solution by Yahoo! Answers
- What would be better a 2-ohm sub or a 4-ohm sub?Best solution by ChaCha
- How can I downgrade my iOS from 4.2 to 4.01?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.