I am now having problem exactly like you. I have trouble creating "htpasswd" file. Every time I try to access to the protected folder, it prompts and asks for password. Even though I enter in for user name and password, it says "Forbidden". No permission to access.
I read so many sources online, and I found out that one of the easy way to creat ".htpasswd" file is:
Put username and passoword in that file. For example, if you have username is tester and password for that username is passtest. Then in the ".htpasswd" file, you need to enter:
tester:passtest
By the way, do you know what to put down for
AuthUserFile? Say, I have 1 folder called "Apache_Pass" which contains user name and password in there. And that folder is in C drive. Then in the ".htaccess" file, I do this:
AuthUserFile C:/Apache_Pass/.htpasswd
Is it correct?