.htpassword manager for apache

I’ve just submitted a code example to Weberdev for managing .htpasswords based on work by Jarno Elonen. I hadn’t seen any PHP scripts to do this so I was pleased to find it. In the past I’ve always relied on other websites to generate the passwords. The functions weren’t difficult once you know where to look.

It didn’t have the management bits on it so I’ve added them, made the file writing a bit more robust and rereleased the script.

Just three things to change and then you’re off

  1. change the path for the location of the .htpasswd file
  2. change the username for the admin
  3. change the email address that user passwords are emailed from

Categories

Recent Comments

Tags

2 Comments

  1. Ryan
    December 6, 2005

    Out of curiosity, is there a quickie little guide floating around out there to use this script?

    You say “Just three things to change and then you?re off” assuming that I know anything about .php or Apache. Alas, while I’m learning, it’s a slow-going and painfull process. My crap hosting company (GoDaddy.com) doesn’t allow for telnet/SSH access completely destroying my ability to create an .htaccess or .htpasswd file the normal way, so this script looks like my only hope.

    Thanks in advance!

    -Ryan
    ryanbruce (at) gmail.com

  2. November 30, 2006

    Hi! I setup SSL/TLS on apache 2.0.
    Its working fine apache only listen on 443 port for incoming connections. My question is:
    How to config apache , for example when user type http://www.dome.com to automatic redirect him to port 443 and https connection. Now when i use http://www.domain.com he dont display anything because apache don listen on 80.
    Can you help me, please? Thanx 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.