Install Latest PhpMyAdmin in RHEL/CentOS 7/6 and Fedora 24-20

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

45 Responses

  1. premchand says:

    I followed this tutorial and installed phpMyAdmin on my RHEL7 which is running on Amazon Web Services. But, I’m unable to use it. I am getting Forbidden Error when accessing. I also changed /etc/httpd/conf.d/phpMyAdmin.conf “Allow from 192.168.0.111″‘. Still getting Forbidden Error.

    • Ravi Saive says:

      @Premchand,

      Have you restarted Apache web server after making changes to phpMyAdmin.conf file? Try to make it Allow from all and see. if it works..

  2. ajit says:

    yum –enablerepo=remi,remi-php56 install phpmyadmin
    Loaded plugins: product-id, rhnplugin, search-disabled-repos, security,
    : subscription-manager
    This system is not registered with RHN Classic or RHN Satellite.
    You can use rhn_register to register.
    RHN Satellite or RHN Classic support will be disabled.
    Setting up Install Process
    epel/metalink | 5.5 kB 00:00
    epel | 4.3 kB 00:00
    remi-safe | 2.9 kB 00:00
    remi-safe/primary_db | 714 kB 00:01
    rhel-6-server-optional-rpms | 3.5 kB 00:00
    rhel-6-server-rpms | 3.5 kB 00:00
    webtatic | 3.6 kB 00:00
    Resolving Dependencies
    –> Running transaction check
    —> Package phpMyAdmin.noarch 0:4.0.10.18-1.el6 will be installed
    –> Processing Dependency: php-mcrypt >= 5.2.0 for package: phpMyAdmin-4.0.10.18-1.el6.noarch
    –> Processing Dependency: php-mbstring >= 5.2.0 for package: phpMyAdmin-4.0.10.18-1.el6.noarch
    –> Processing Dependency: php-gd >= 5.2.0 for package: phpMyAdmin-4.0.10.18-1.el6.noarch
    –> Processing Dependency: php-xmlwriter for package: phpMyAdmin-4.0.10.18-1.el6.noarch
    –> Processing Dependency: php-tcpdf-dejavu-sans-fonts for package: phpMyAdmin-4.0.10.18-1.el6.noarch
    –> Processing Dependency: php-tcpdf for package: phpMyAdmin-4.0.10.18-1.el6.noarch
    –> Processing Dependency: php-php-gettext for package: phpMyAdmin-4.0.10.18-1.el6.noarch
    –> Running transaction check
    —> Package php-gd.x86_64 0:5.3.3-48.el6_8 will be installed
    —> Package php-mbstring.x86_64 0:5.3.3-48.el6_8 will be installed
    —> Package php-php-gettext.noarch 0:1.0.12-1.el6 will be installed
    —> Package php-tcpdf.noarch 0:6.2.13-1.el6 will be installed
    –> Processing Dependency: php-tidy for package: php-tcpdf-6.2.13-1.el6.noarch
    –> Processing Dependency: php-posix for package: php-tcpdf-6.2.13-1.el6.noarch
    –> Processing Dependency: php-composer(fedora/autoloader) for package: php-tcpdf-6.2.13-1.el6.noarch
    –> Processing Dependency: php-bcmath for package: php-tcpdf-6.2.13-1.el6.noarch
    —> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.13-1.el6 will be installed
    —> Package php-xml.x86_64 0:5.3.3-48.el6_8 will be installed
    —> Package php71w-mcrypt.x86_64 0:7.1.1-1.w6 will be installed
    –> Processing Dependency: php71w-common(x86-64) = 7.1.1-1.w6 for package: php71w-mcrypt-7.1.1-1.w6.x86_64
    –> Processing Dependency: libmcrypt.so.4()(64bit) for package: php71w-mcrypt-7.1.1-1.w6.x86_64
    –> Running transaction check
    —> Package libmcrypt.x86_64 0:2.5.8-9.el6 will be installed
    —> Package php-bcmath.x86_64 0:5.3.3-48.el6_8 will be installed
    —> Package php-fedora-autoloader.noarch 0:0.2.1-2.el6 will be installed
    —> Package php-process.x86_64 0:5.3.3-48.el6_8 will be installed
    —> Package php-tidy.x86_64 0:5.3.3-48.el6_8 will be installed
    –> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php-tidy-5.3.3-48.el6_8.x86_64
    —> Package php71w-common.x86_64 0:7.1.1-1.w6 will be installed
    –> Running transaction check
    —> Package libtidy.x86_64 0:0.99.0-19.20070615.1.el6 will be installed
    –> Processing Conflict: php71w-common-7.1.1-1.w6.x86_64 conflicts php-common Finished Dependency Resolution
    Error: php71w-common conflicts with php-common-5.3.3-48.el6_8.x86_64
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    Not able to install the phpmyadmin.

    • Ravi Saive says:

      @Ajit,

      Its due to because, you’ve multiple third-party repositories enabled your system, try to disable them and install with remi repository..

      • Mallory Woods says:

        @Ravi – I also have the same issue. I have tried to remove the repos but I still have the same issue. Here is my repo list

        yum -v repolist
        Loading “rhnplugin” plugin
        Loading “product-id” plugin
        Loading “search-disabled-repos” plugin
        Loading “security” plugin
        Loading “subscription-manager” plugin
        Updating Subscription Management repositories.
        Unable to read consumer identity
        Config time: 0.080
        This system is receiving updates from RHN Classic or RHN Satellite.
        Looking for repo options for [main]
        Looking for repo options for [rhel-x86_64-server-6]
        Repo ‘rhel-x86_64-server-6’ setting option ‘enabled’ = ‘1’
        Repo ‘rhel-x86_64-server-6’ setting option ‘gpgcheck’ = ‘1’
        Yum Version: 3.2.29
        Setting up Package Sacks
        pkgsack time: 0.037
        Repo-id : epel
        Repo-name : Extra Packages for Enterprise Linux 6 – x86_64
        Repo-revision: 1491688862
        Repo-tags : binary-x86_64
        Repo-updated : Sat Apr 8 18:36:56 2017
        Repo-pkgs : 12,293
        Repo-size : 11 G
        Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64
        Updated : Sat Apr 8 18:36:56 2017
        Repo-baseurl : http://mirror.math.princeton.edu/pub/epel/6/x86_64/ (35 more)
        Repo-expire : 21,600 second(s) (last: Mon Apr 10 10:28:04 2017)

        Repo-id : remi-safe
        Repo-name : Safe Remi’s RPM repository for Enterprise Linux 6 – x86_64
        Repo-revision: 1491761087
        Repo-updated : Sun Apr 9 14:04:52 2017
        Repo-pkgs : 1,770
        Repo-size : 333 M
        Repo-mirrors : http://rpms.remirepo.net/enterprise/6/safe/mirror
        Repo-baseurl : http://rpms.remirepo.net/enterprise/6/safe/x86_64/ (32 more)
        Repo-expire : 21,600 second(s) (last: Mon Apr 10 10:28:11 2017)

        Repo-id : rhel-x86_64-server-6
        Repo-name : Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)
        Repo-updated : Thu Apr 6 09:07:55 2017
        Repo-pkgs : 19,422
        Repo-size : 35 G
        Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-6
        Repo-expire : 21,600 second(s) (last: Mon Apr 10 10:28:14 2017)

        repolist: 33,485

        This is the error that I got:

        Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
        Requires: php-posix
        Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
        Requires: php-bcmath
        Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
        Requires: php-tidy
        Error: Package: phpMyAdmin-4.0.10.19-1.el6.noarch (epel)
        Requires: php-mbstring
        Error: Package: php-php-gettext-1.0.12-1.el6.noarch (epel)
        Requires: php-mbstring
        Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
        Requires: php-mbstring
        You could try using –skip-broken to work around the problem
        You could try running: rpm -Va –nofiles –nodigest

        Any suggestions? Thanks

        • Ravi Saive says:

          @Mallory,

          Remove or Disable all Repos except Default Repo and EPEL repo and try to install PhpMyAdmin using Epel repository.

          • Mallory Woods says:

            @ravi I get the same results even with disabling the other repos.

            yum –disablerepo=”*” –enablerepo=”epel” install phpmyadmin
            Loaded plugins: product-id, rhnplugin, search-disabled-repos, security, subscription-
            : manager
            This system is receiving updates from RHN Classic or RHN Satellite.
            Setting up Install Process
            Resolving Dependencies
            –> Running transaction check
            —> Package phpMyAdmin.noarch 0:4.0.10.19-1.el6 will be installed
            –> Processing Dependency: php-xmlwriter for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-tcpdf-dejavu-sans-fonts for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-tcpdf for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-php-gettext for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-mcrypt for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-mbstring for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-gd for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Running transaction check
            —> Package php-mcrypt.x86_64 0:5.3.3-5.el6 will be installed
            –> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.3.3-5.el6.x86_64
            —> Package php-php-gettext.noarch 0:1.0.12-1.el6 will be installed
            –> Processing Dependency: php-mbstring for package: php-php-gettext-1.0.12-1.el6.noarch
            —> Package php-tcpdf.noarch 0:6.2.13-1.el6 will be installed
            –> Processing Dependency: php-xml for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-tidy for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-posix for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-mbstring for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-gd for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-composer(fedora/autoloader) for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-bcmath for package: php-tcpdf-6.2.13-1.el6.noarch
            —> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.13-1.el6 will be installed
            —> Package phpMyAdmin.noarch 0:4.0.10.19-1.el6 will be installed
            –> Processing Dependency: php-xmlwriter for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-mbstring for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-gd for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Running transaction check
            —> Package libmcrypt.x86_64 0:2.5.8-9.el6 will be installed
            —> Package php-fedora-autoloader.noarch 0:1.0.0-0.1.rc1.el6 will be installed
            —> Package php-php-gettext.noarch 0:1.0.12-1.el6 will be installed
            –> Processing Dependency: php-mbstring for package: php-php-gettext-1.0.12-1.el6.noarch
            —> Package php-tcpdf.noarch 0:6.2.13-1.el6 will be installed
            –> Processing Dependency: php-xml for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-tidy for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-posix for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-mbstring for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-gd for package: php-tcpdf-6.2.13-1.el6.noarch
            –> Processing Dependency: php-bcmath for package: php-tcpdf-6.2.13-1.el6.noarch
            —> Package phpMyAdmin.noarch 0:4.0.10.19-1.el6 will be installed
            –> Processing Dependency: php-xmlwriter for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-mbstring for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Processing Dependency: php-gd for package: phpMyAdmin-4.0.10.19-1.el6.noarch
            –> Finished Dependency Resolution
            Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
            Requires: php-posix
            Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
            Requires: php-xml
            Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
            Requires: php-bcmath
            Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
            Requires: php-tidy
            Error: Package: phpMyAdmin-4.0.10.19-1.el6.noarch (epel)
            Requires: php-gd
            Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
            Requires: php-gd
            Error: Package: phpMyAdmin-4.0.10.19-1.el6.noarch (epel)
            Requires: php-mbstring
            Error: Package: phpMyAdmin-4.0.10.19-1.el6.noarch (epel)
            Requires: php-xmlwriter
            Error: Package: php-php-gettext-1.0.12-1.el6.noarch (epel)
            Requires: php-mbstring
            Error: Package: php-tcpdf-6.2.13-1.el6.noarch (epel)
            Requires: php-mbstring
            You could try using –skip-broken to work around the problem
            You could try running: rpm -Va –nofiles –nodigest

          • Ravi Saive says:

            @Mallory,

            Better remove all third party repositories and install PhpMyAdmin via epel repository only. The reason you getting these errors, as you having multiple repositories on the system.

  3. jocovish sam says:

    Hi, Please I have a problem, when I install PhpMyAdmen and I run command service httpd restart I get the below error.

    Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.0.0.0 for ServerName
    

    And I can’t access my http://192.0.0.0/PhpMyAdmen/

    Forbidden

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

    Apache/2.2.15 (CentOS) Server at 192.0.0.0 Port 80

    Please help me!

    • Ravi Saive says:

      @Jocovish,

      That’s not error, it saying that the service could not determine the server full qualified hostname, to get rid of this error, try to add your system hostname in /etc/hosts file and then restart the httpd service..

      Regarding Forbidden error, you need allow you IP address to access PhpMyAdmin..

  4. Kumar Nikhil says:

    i am getting error : forbidden you don’t have permission to access /phpmyadmin on this server.
    apache/2.2.15 (Centos) server at 172.16.16.25 port 80

    • Ravi Saive says:

      @Kumar,

      In /etc/httpd/conf.d/phpMyAdmin.conf file, add the IP address of your machine as shown and restart Apache.

      Allow from your-ip-address
      
  5. blaisck says:

    I already installed php56-remi on my Fedora 20
    how can i install newest phpmyadmin?

Got something to say? Join the discussion.

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