Webmaster Security

How to disable phpmyadmin url?

Submitted by Rape, , Thread ID: 25448

Thread Closed
Rape
die(Rape);
Level:
0
Reputation:
-10
Posts:
128
Likes:
15
Credits:
226
16-12-2016, 06:30 PM
#1
How do I disable myphpmyadmin access url is open and there are multiple ways to do XSS attacks.

RE: How to disable phpmyadmin url?

A
User Icon
\(_o)/
Level:
0
Reputation:
206
Posts:
5.52K
Likes:
1.24K
Credits:
50.7K
16-12-2016, 06:33 PM
#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

RE: How to disable phpmyadmin url?

Rape
die(Rape);
Level:
0
Reputation:
-10
Posts:
128
Likes:
15
Credits:
226
OP
16-12-2016, 06:54 PM
#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?

RE: How to disable phpmyadmin url?

A
User Icon
\(_o)/
Level:
0
Reputation:
206
Posts:
5.52K
Likes:
1.24K
Credits:
50.7K
16-12-2016, 06:57 PM
#4
16-12-2016, 06:54 PM
Rape Wrote:
In Cpanel where is myconfig.inc.php file?

/usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

Please take backup before you change anything, i haven't worked with cpanel even once.

RE: How to disable phpmyadmin url?

Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
16-12-2016, 06:57 PM
#5
Moved to Webmaster Security.
Next time pick the right section. '-'

RE: How to disable phpmyadmin url?

NightPotato
Newbie
Level:
0
Reputation:
0
Posts:
17
Likes:
1
Credits:
28
05-01-2017, 06:34 AM
#6
Nice, been looking into this, hope it will work!

Users browsing this thread: 1 Guest(s)