RHEL 6.x and apache 2.4

Written by Peter Davies on .

Add Jan Kaluza's collection:

curl -s https://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo > /etc/yum.repos.d/epel-httpd24.repo
yum install httpd24-httpd

Check its install: rpm -ql httpd24-httpd | grep sbin


Stop the existing apache process: service httpd stop and run the new: service httpd24-httpd start. You should see the following default page when its working:

Now we need to make the Apache 2.4 install behave like the previous for virtualmin:

mv httpd.conf httpd.conf~24
ln -s /etc/httpd/conf/httpd.conf /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
service httpd24-httpd restart

This then comes with its own challenges as 2.2 formatted config files don't conform to 2.4 requirements. You'll need to manually go through the config file and locate any differences. The solution I had was open two SSH connections and use the second connection to restart apache.