Results 1 to 2 of 2
I figured I would post before I go in the closet with a bat and kill the server.
So im running a server with Debian Lenny I have Apache2, mysql, ...
- 01-24-2009 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 30
phpmyadmin deny wan access (solved)
I figured I would post before I go in the closet with a bat and kill the server.
So im running a server with Debian Lenny I have Apache2, mysql, and php running. I got phpmyadmin and all I want to do is stop it from allowing traffic from the wan. I want to only access it from the LAN.
I tried adding code to /etc/apache2/httpd.conf and /etc/apache2/apache2.conf
I also tried changing the name of the directory /var/lib/phpmyadmin to /var/lib/blahCode:<Directory /var/lib/phpmyadmin/> Order Deny,Allow Deny from all Allow from 10.0 </Directory>
to see if that would stop access so only mydomain.com/blah would get phpmyadmin and mydomain.com/phpmyadmin wouldnt exist... (LOL that fubared my sh*t so I had to remove phpmyadmin and reinstall)
I've read a few articles online which say to ad .htaccess (I dont think thats very secure) but regardless all I want is complete access only from the lan, nowhere else... is there a way to do this?
thanks in advance for any help.Last edited by riot1ne; 01-24-2009 at 09:12 PM. Reason: Solved
- 01-24-2009 #2Just Joined!
- Join Date
- Dec 2008
- Posts
- 30
Problem solved...
For Debian Lenny (I dont know about other distros)
Edit /etc/phpmyadmin/apache.conf
Add
Between <directory> and </directory> tagsCode:Order Deny,Allow Deny from all Allow from 10.0
Change the 10.0 to your subnet.
I added it at the bottom just before the end tag.


Reply With Quote