Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm new...htpasswd-how?!?

Status
Not open for further replies.

N3wbi3

MIS
Nov 13, 2002
13
BR
hey, I just installed apache...I can get the server running, but how do I create a user/password so that I can upload files and configure my directory. Please help, I have no clue... they say use htpasswd.exe, but it just opens a window and closes it really fast.
 
umm... how can I ftp to the site if I don't have a access...I thought I was suppose to run htpasswd.exe and enter in user/pass like "Newbie: password"...however it opens and closes window program and won't allow me to enter anything. And yes I'm on Windows XP. thanks
 
To deal with user files, I have provided a DOS program in the support directory of the distribution called HTPASSWD.EXE. Usage:

htpasswd [-c] file user
The -c, if present, tells htpasswd to create a new passwd file of the specified name instead of editing an old one. file is the pathname of the user file you wish to edit. The user parameter is the name of the user you wish to add or edit.

If htpasswd finds the user you specified, it will ask you to change the user's password. Type the new password (it will ask twice). httpd will then update the file.

If htpasswd doesn't find the specified user, it will ask you to give the user an initial password.
****************************************************8
kinda doesn't work if I can't have the program open for 1/2 a second
 
I apply htpasswd [-c] file user in MS DOS Prompt and that's it?
 
it says : 'htpasswd' is not recognized as an internal or external command, operable program or batch file...
I have to make another file that can be call "users.htpasswd"...and in it if I would put lets say "Newbie: password" and the user would be Newbie and password would be password? and then I have to run htpasswd on this file??...and where do I have to place this file?
 
k, I'm closer....but what am I suppose to put under the "file" part of the command if I don't have a file....just make a path to my apache directory in my C:?
Thanks a lot for helping me...they must pay you a lot to help dumb people like me
 
Hi mate,

For the filename put .htaccess and that will create a .htaccess file in the root of your drive, then just move this to wherever you want it.

Thanks a lot for helping me...they must pay you a lot to help dumb people like me

I wish we got paid for this!! LOL

Hope this helps Wullie

 
yay! I got it. You are the best.(doesn't matter where I move this file to now right?)
 
k...on that website it says: Create a .htpasswd file by following the instructions here.

Upload the .htaccess to
Now upload the .htpasswd file to C:\Program Files\Apache Group\Apache
Now attempt to access the folder at
You should be prompted for a password.
***************************
but how can I (upload?) that file, since this cpu is the server, how do I put the file in that directory
 
What are you talking about?
if I have my apache directory and it's "C:\Program Files\Apache Group\Apache", then I make a folder which is titled "secure" and put my .htaccess file in there which has my username and encrypted password along with...

AuthUserFile AuthGroupFile /dev/null
AuthType Basic
AuthName "secure area"
<LIMIT GET POST>
require valid-user
</LIMIT>

....which I made from your site. but so if like I wanted to change the apache greeting at to something of my own...where would I put my index.html??
 
Hi mate,

Go back to the link I provided and go through the process of making the file again.. Do not change anything after you make the file!!

You have altered that file...

Where it says upload, ignore that and move the file to the directory that it mentions..

I do not mind helping but I won't if you are ignoring things that I say will fix the problem..

Hope this helps Wullie

 
ohh....I Put it in htdocs, sorry thanks man, I'll try to stop bothering you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top