Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Location
    Dublin, PA
    Posts
    381
    Thanks
    33
    Thanked 18 Times in 16 Posts
    Rep Power
    10

    How are you locking down your phpmyadmin access?

    There are a couple of ways that I lock it down.. I won't get into specifics because I don't want you (or you!) trying to find it..

    Rename your phpmyadmin alias:
    Edit: /etc/httpd/conf.d/phpmyadmin.conf

    Look for:
    Code:
    Alias /phpmyadmin /usr/share/phpmyadmin
    Alias /phpMyAdmin /usr/share/phpmyadmin
    Alias phpMyadmin /usr/share/phpmyadmin
    (or something like that... )

    and change it to something like:
    Code:
    Alias /supersecret456 /usr/share/phpmyadmin
    Restrict access to your known ip address:
    Edit /etc/httpd/conf/phpmyadmin.conf

    At the top of the file you'll see something like:
    Code:
    <Directory "/usr/share/phpmyadmin">
      Order Deny,Allow
      Deny from all
      Allow from 127.0.0.1
    </Directory>
    Modify it to only allow the ip addresses that you'll connect from:
    Code:
    <Directory "/usr/share/phpmyadmin">
      Order Deny,Allow
      Deny from all
      Allow from 127.0.0.1
      Allow from 70.100.100.100
      Allow from 70.200.200.200
    </Directory>
    Restart apache and test it out!




  2. #2
    Join Date
    Apr 2012
    Posts
    124
    Thanks
    5
    Thanked 1 Time in 1 Post
    Rep Power
    2
    Lockdown achieved!

  3. #3
    Join Date
    Apr 2012
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I don't really. I don't have it aliased from anywhere and the directory's fairly hidden. On top of that you'd need to know the MySQL deets to log in, and every database has it's own nonsense user and it's own nonsense password, custom-generated ones like these:
    Code:
    ma=[x5@&Mh}$]#,FVmBjaUZ}s>x8i)Vh*j6:kKZ5l<MLRzLN|=
    qGMzLFvK[A2(axD=lEO-nkvx\Xl#iiJV,GWUHeCM?z-HfF!k?s
    a,RsauSs,7:9)tXz7hwv\9%1-5I#}y<{XN}yH$!&2G]t;[Az4,
    On top of that MySQL's localhost-only and I only run custom code in an effort to avoid zero-day exploits.

 

 

Similar Threads

  1. Adding GUI/Graphical Interface with access via VNC
    By wjack2010 in forum General Server
    Replies: 1
    Last Post: 05-23-2012, 11:37 PM
  2. Locking down ports
    By MustangV10 in forum Server Security
    Replies: 6
    Last Post: 04-30-2012, 03:28 PM
  3. Can't upload .sql file into phpmyadmin
    By wpcoach in forum Database
    Replies: 3
    Last Post: 04-30-2012, 01:28 AM
  4. Replies: 0
    Last Post: 12-19-2011, 02:43 PM
  5. Replies: 0
    Last Post: 12-06-2011, 08:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

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








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,580
Threads: 3,920
Posts: 9,446
Top Poster: Fred (1,486)
Welcome to our newest member, SLW210

» Links



Powered by vBadvanced CMPS