Installing LAMP (Linux, Apache, MariaDB, PHP/PhpMyAdmin) in RHEL/CentOS 7.0

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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.45/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.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

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...

31 Responses

  1. sahadev says:

    plz guide me how to configure phpmyadmin bcause i am not accessing that and i m receving this nessages


    You don’t have permission to access /phpmyadmin on this server.

    Apache/2.2.15 (CentOS) Server at Port 80

  2. Mohamed says:

    To resolve the problem of phpmyadmin,
    do :
    rpm -ivh
    yum install phpmyadmin

    Enjoy ;-)

  3. Jim says:

    Nice howto. FWIW, step #14 is missing the `install’ command on the yum command line:

    yum install

  4. Lee says:

    About phpmyadmin

  5. Lee says:

    rpm -Uvh
    yum install -y phpmyadmin

    vi /etc/httpd/conf.d/phpMyAdmin.conf

    # # Apache 2.4
    # Require ip
    # Require ip ::1
    # # Apache 2.2
    # Order Deny,Allow
    # Deny from All
    # Allow from
    # Allow from ::1
    Require all granted

    I found many ways online and I successed by this way.

  6. Matei Cezar says:

    Binary PhpMyAdmin package can be installed now from EPEL 7 Repo:
    rpm -Uvh

    Apache config file for PhpMyAdmin:
    nano /etc/httpd/conf.d/phpMyAdmin.conf

  7. Eva Sodemann says:

    Your installation instructions are great! But I am having issues accessing phpMyAdmin from a remote computer, even adding in the internal IP address of the client machine.

    • Toni says:

      Thanks a lot!
      Add your network between

      15 Require ip
      16 Require ip 192.168.0.
      17 Require ip ::1

  8. Darren says:

    From an install today (2014/07/24) the phpmyadmin.conf file name has been re-cased to:


    So the location is:


  9. Matei Cezar says:

    Yes …you are right…I think they have removed phpmyadmin from rpmforge repositories. A few days ago the packages was there and working. Remove rpmforge from your system and install phpMyAdmin from sources:

    yum remove rpmforge-release
    tar xfz phpMyAdmin-4.2.6-english.tar.gz
    mv phpMyAdmin-4.2.6-english/ phpmyadmin
    cp -r phpmyadmin/ /usr/share/
    nano /etc/httpd/conf.d/phpmyadmin.conf

    Here add this lines:


    Order Deny,Allow
    Deny from all
    Allow from ## Use your IP/Network CDIR
    Require all granted

    Alias /phpmyadmin /usr/share/phpmyadmin
    Alias /phpMyAdmin /usr/share/phpmyadmin
    Alias /mysqladmin /usr/share/phpmyadmin

    systemctl restart httpd.service

    cp /usr/share/phpmyadmin/ /usr/share/phpmyadmin/

    nano /usr/share/phpmyadmin/

    Add blowfish pass as explained above ( and you’re ready!

  10. Andrew Meyer says:

    So the installation of phpMyAdmin doesn’t work…its not even in the repo

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.