Ok i know how to use .htaccess and .htpassword on linux but now i must add users to apache under a windows environment.

On linux i would go

[B]$ htpasswd -c (path to .htpassword file) (username)[/B]
 
[I]Adding password for (username)[/I]
[I]New Password:[/I]
[I]Re-Type old password:[/I]

How do i make .htpassword files under windows?

Recommended Answers

All 7 Replies

generate in linux. Download it to windows

It doesnt work ive tried that

htpasswd exists on the Windows platform alright, are you sure it isn't somewhere on your hard disk?
http://httpd.apache.org/docs/2.0/programs/htpasswd.html

Restrictions

On the Windows and MPE platforms, passwords encrypted with htpasswd are limited to no more than 255 characters in length. Longer passwords will be truncated to 255 characters.

I cant find the command. Its not under /bin :(

I found a .htpassword generator on the web but it doesnt work :(

I may have to resort to rewriting my site to use MySQL and cookies for authentication

how can i test if mod_rewrite is loaded or no?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.