Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: ' htpasswd '

  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ' htpasswd '

    Hello,
    I recently set up my ".htaccess" at
    http://142.59.59.29/www/admin/ << You DONT have to look if you dont want too

    Now, I enter
    "admin" as my username, and "k7YuHeFv"
    (Without the quotes) as my password...

    However, I came accross a tutorial site that had said it will encrypt your password for you if you type it in the box
    So I typed in k7YuHeFv - and it said it had "encrypted" it
    so it came out with this wLhGEkTk9tqkA

    So then it said beneath that, make your htpasswd
    file like this:

    admin:wLhGEkTk9tqkA

    then save it as htpasswd

    So I did that, but for some reason it doesn't work on my login?
    Does anyone know why this is occuring?
    IE: Go to
    http://142.59.59.29/www/admin/ if you want...
    And enter admin as the username, and k7YuHeFv
    As the password.... Notice it doesn't work....
    Would anyone know why that is?
    Do I need to change the wLhGEkTk9tqkA
    to my actual password I want maybe?

    Thanks
    Last edited by Labbat; 02-04-2004 at 08:13 PM.

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,048
    Thanks
    10
    Thanked 93 Times in 91 Posts
    your server is apache on windows , you probably got the password hash from a site running *NIX , whilst htpasswd program is essentially the same on both , *NIX & win32 use different hashing algorithms.

    as you have apache you probably have the htpasswd program in c:/program files/apache group/apache/bin/ (or similar)

    use that to create your password files and they will work ( open a dos window and cd to the /bin directory and type `htpasswd --help` for more info )
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    And is this doesn't seem to have anything to do with PHP let's move it to the Other Server Side Issues forum....
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

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