Allow phpmyadmin to be accessed from outside the network

When using WAMP server on windows and you like phpmyadmin to be accessed from the outside. Make sure you put wamp online first then go to C:\wamp\alias directory and open phpmyadmin.conf. Replace Allow by using your own IP or any IP that it can be accessed. Use comma for multiple stances. Or you could simply follow the instructions on there. Where it says to change to “allow from all” replacing “deny from all”.

Then head to “config.inc.php” of the phpmyadmin folder and look for the lines that say:

$cfg[‘Servers’][$i][‘AllowDeny’][‘order’] // Host authentication order, leave blank to not use
= ”;
$cfg[‘Servers’][$i][‘AllowDeny’][‘rules’]=”

change it to:

$cfg[‘Servers’][$i][‘AllowDeny’][‘order’]
// Host authentication order, leave blank to not use
= ‘deny,allow’;
$cfg[‘Servers’][$i][‘AllowDeny’][‘rules’]
// Host authentication rules, leave blank for defaults
= array(
‘deny root from all’,
‘allow root from localhost’,
‘allow root from 192.168.0.4’ // Any IP your accessing the phpmyadmin from.
);

After that change the auth_type to ‘http’. Restart the server and you should be able to login now from the outside with authentication window asking for the username and password.

Leave a Reply

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