Page 1 of 1

(OS 2)The system cannot find the file specified.

PostPosted: 28. March 2008 17:54
by thijsvn
hi all,
i recently tried to set up an apache server at home, now i wanted to use password protection for some files so i created a .htaccess file and a password file using the htpasswd function in the bin folder.

now when i try to acces the path i put the .htacces file in and fill in my account name and password it returns a 500 Internal Server Error.

When i acces the error log of apache it reads the following:
(OS 2)The system cannot find the file specified. : Could not open password file: D:/apache/passwords/password.txt

i don't know what to do, please help me.

p.s. my .htacces file looks like this:

AuthType Basic
AuthName "This is a private area, please log in"

AuthUserFile "d:\apache\passwords\password.txt"
AuthGroupFile /dev/null

<Limit GET POST PUT>
require valid-user
</Limit>

Thanks!

PostPosted: 28. March 2008 17:56
by Wiedmann
(OS 2)The system cannot find the file specified. : Could not open password file: D:/apache/passwords/password.txt

You have this file? Make a:
Code: Select all
dir "D:\apache\passwords\password.txt"

in the shell.

PostPosted: 28. March 2008 18:01
by thijsvn
i typed the following in the cmd:

d:\apache\bin>htpasswd -c d:\apache\passwords\password "username"

then it prompts for a password and a re-type, and it says it is using md5 format.

i do not know what u mean by shell, i am a complete noob on this field

btw i'm running Vistax64

gr

PostPosted: 28. March 2008 18:03
by Wiedmann
d:\apache\bin>htpasswd -c d:\apache\passwords\password "username"

AuthUserFile "d:\apache\passwords\password.txt"

You see the difference?

i do not know what u mean by shell,

That's the black thing, where you type your commands like "htpasswd.exe ..."

PostPosted: 28. March 2008 18:14
by thijsvn
you mean i should just simply remove the .txt extention?