phpMyAdmin

Josh-Josh- Royal Oak, MI
edited December 2003 in Internet & Media
Keeping it from being accessed by common people? :~/

Comments

  • Park_7677Park_7677 Missouri Member
    edited December 2003
    1) Creating a USER file: (Apache.org DOCs)

    Start > Run > cmd [ PRESS ENTER ]

    cd "C:/[ PATH TO APACHE ]/bin"
    htpasswd -c c:\users.auth [YOUR USER NAME] [ PRESS ENTER ]
    [ enter your password ]



    When that's done, move your users.auth file to somewhere outside your HTDOCS folder but somewhere you remember.


    2) Editing Apache's Config to check users. (Apache.org DOCs)
    < Directory "C:/[ PATH TO HTDOCS/phpmyadmin">

    AuthType Basic
    AuthName "Custom Title Here"
    AuthUserFile c:/path/to/user/from/ApacheDIR/users.auth
    Require valid-user

    [ ALL OTHER OPTIONS YOU WANT ]

    </Directory>

    3) Restart Apache

    Make sure the httpd.confg is saved, then restart Apache.




    It does take some practice to get it just right, but it's not _too_ hard. You got my SN if you need me to hold your hand and walk you through it ;D
  • Park_7677Park_7677 Missouri Member
    edited December 2003
    or.. Restrict by IP address
    < Directory "C:/[ PATH TO HTDOCS/phpmyadmin">

    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from xxx.xxx.xxx.xxx

    </Directory>

    Restart Apache

    Make sure the httpd.confg is saved, then restart Apache.
  • Josh-Josh- Royal Oak, MI
    edited December 2003
    It's working..thank you very much :)
Sign In or Register to comment.