phpMyAdmin – allow remote access to phpMyAdmin

To allow access to phpMyAdmin on a server from a remote browser, edit the file:

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

and add lines as follows (example allow remote access from 192.168.1.107)

# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

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


   AddDefaultCharset UTF-8

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



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


# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#

    Order Deny,Allow
    Deny from All



    Order Deny,Allow
    Deny from All



    Order Deny,Allow
    Deny from All


# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc.  This may break your mod_security implementation.
#
#
#    
#        SecRuleInheritance Off
#    
#