Webmaster Security

How to disable phpmyadmin url?

Submitted by Rape, , Thread ID: 25448

Thread Closed

RE: How to disable phpmyadmin url?

#2
In your config.inc.php file change:
Code:
$cfg['Servers'][$i]['auth_type']    = 'config';

and add
Code:
$cfg['Servers'][$i]['user']         = 'root';  
$cfg['Servers'][$i]['password']     = 'password';

or, even better:
locate the file in directory /etc/httpd/conf.d/phpmyadmin.conf/ and uncomment these lines to only give access on the local system to phpmyadmin, and leave the users from outside with no access to phpmyadmin
Code:
<Directory "/usr/share/phpmyadmin">
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
</Directory>
1

Users browsing this thread: 1 Guest(s)