Install Latest Apache 2.4, MySQL 5.5/MariaDB 10.1 and PHP 5.5/5.6 on RHEL/CentOS 7/6 & Fedora 24-18

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

194 Responses

  1. murthy says:

    I am gone through same steps but still apache is in old version… Any idea ???

    • Ravi Saive says:


      Could you share your Linux distribution name and version on which you are trying to install Apache..

      • murthy says:

        [[email protected] ~]# cat /etc/redhat-release
        CentOS release 6.8 (Final)

        • Shaun Forsyth says:

          Did you ever get 2.4 on Centos 6.8. This guide does not setup apache 2.4. Also every repo I find, then ties to revert back to php 5.3

          • Ravi Saive says:


            I tried ones and got the Apache 2.4, let me give a try again on my CentOS 6.8, will update you if I able to get it or not..

  2. Purab Kharat says:

    Nice helpful article Ravi. I used your tips for my VPS.


  3. Victor says:

    CentOS 6.7 x86_64 don’t update/install Apache 2.4, any solutions?

    • Ravi Saive says:


      Have you enabled said Remi repository on the system, before trying to install/update Apache? Which version of Apache, you currently have on the system?

  4. Carlos Orlandi says:

    I had some issues when i tried to install Apache, Mysql and PHP using this method but now i guess it’s working.

    I would like to know how i could test my webserver ? I’m not using any GUI at my Red Hat Server. I saw you posting to test using . But how could i do that in my pc? I tried to use the server ip address and i don’t have any success. :(

    Could you help me?

  5. Claudia says:

    hi, when I try to create a phpinfo.php and view it from the browser level, i wasn’t able to see the same page as you.
    Instead I am seeing things like

  1. December 12, 2015

    […] Installing LAMP in RHEL/CentOS 6.0 […]

  2. March 25, 2016

    […] Install LAMP in RHEL/CentOS 6 and Fedora […]

  3. June 2, 2016

    […] Read Also: Install Latest Apache 2.4, MySQL 5.5/MariaDB 10 and PHP 5.5/5.6 on RHEL/CentOS 7/6 & Fedora 20-… […]

  4. September 1, 2016

    […] Install LAMP Stack on RHEL/CentOS 7/6 & Fedora 24-18 […]

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *