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

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:

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

    Forbidden

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

    Apache/2.2.15 (CentOS) Server at 10.0.0.80 Port 80

  2. Mohamed says:

    To resolve the problem of phpmyadmin,
    do :
    rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm
    yum install phpmyadmin

    Enjoy ;-)

  3. Jim says:

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

    yum install http://pkgs.repoforge.org/

  4. Lee says:

    About phpmyadmin

  5. Lee says:

    rpm -Uvh http://fedora.mirrors.romtelecom.ro/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
    yum install -y phpmyadmin

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

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

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

  6. Matei Cezar says:

    Binary PhpMyAdmin package can be installed now from EPEL 7 Repo:
    rpm -Uvh http://fedora.mirrors.romtelecom.ro/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

    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:

      Hi.
      Thanks a lot!
      Add your network between

      /etc/httpd/conf.d/phpMyAdmin.conf
      15 Require ip 127.0.0.1
      16 Require ip 192.168.0.
      17 Require ip ::1
      18

  8. Darren says:

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

    phpMyAdmin.conf

    So the location is:

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

  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
    wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.2.6/phpMyAdmin-4.2.6-english.tar.gz
    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 192.168.1.0/24 ## 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/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php

    nano /usr/share/phpmyadmin/config.inc.php

    Add blowfish pass as explained above (http://www.question-defense.com/tools/phpmyadmin-blowfish-secret-generator) 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.