Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: phpmyadmin help

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

    <Directory /var/lib/phpmyadmin/>
        Order Deny,Allow
        Deny from all
        Allow from 10.0
    I also tried changing the name of the directory /var/lib/phpmyadmin to /var/lib/blah

    to see if that would stop access so only would get phpmyadmin and 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

  2. #2
    Problem solved...

    For Debian Lenny (I dont know about other distros)

    Edit /etc/phpmyadmin/apache.conf


        Order Deny,Allow
        Deny from all
        Allow from 10.0
    Between <directory> and </directory> tags
    Change the 10.0 to your subnet.

    I added it at the bottom just before the end tag.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts