Page 1 of 1

Stopping phpMyAdmin login page from being accessed from inte

PostPosted: 28. July 2009 16:32
by aj123cd
Stopping phpMyAdmin login page from being accessed from internet

PhpMyAdmin can be accessed simply by
http://www.mydomain.org/phpmyadmin
to stop I have followed the method. But I am not sure it is the correct method. Can anyone tell me that I’m Wright or wrong. Thanks you

In \xampp\apache\conf\extra\httpd-xampp.conf change red with green:
Replace "Allow from localhost" with "Allow from 127.0.0.1"

1. XAMPP
<Directory "/xampp/htdocs/xampp">
<IfModule php5_module>
<Files "status.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
Order deny, allow
Deny from all
Allow from all
</Directory>

</IfModule>
Order deny, allow
Deny from all
Allow from 127.0.0.1
</Directory>

2. SECURITY

<Directory "/xampp/security/htdocs">
<IfModule php5_module>
<Files "xamppsecurity.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
Order deny, allow
Deny from all
Allow from all
</Directory>


</IfModule>
Order deny, allow
Deny from all
Allow from 127.0.0.1
</Directory>

3. phpMyAdmin
<Directory "/xampp/phpMyAdmin">
Order deny, allow
Deny from all
Allow from all
</Directory>

<Directory "/xampp/phpMyAdmin">
Order deny, allow
Deny from all
Allow from 127.0.0.1
</Directory>

Or
1. open the file "\xampp\apache\conf\extra\httpd-xampp.conf" in a texteditor
2. replace "Allow from localhost" with "Allow from 127.0.0.1" (2 times)
3. save the file
4. restart Apache