Webmaster Security

How to disable phpmyadmin url?

Submitted by Rape, , Thread ID: 25448

Thread Closed

RE: How to disable phpmyadmin url?

OP
#3
16-12-2016, 06:33 PM
Monopol Wrote:
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>

In Cpanel where is myconfig.inc.php file?

Users browsing this thread: 1 Guest(s)