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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby thijsvn » 28. March 2008 17:54

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!
Hu?!?
thijsvn
 
Posts: 3
Joined: 28. March 2008 17:47

Postby Wiedmann » 28. March 2008 17:56

(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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby thijsvn » 28. March 2008 18:01

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
Hu?!?
thijsvn
 
Posts: 3
Joined: 28. March 2008 17:47

Postby Wiedmann » 28. March 2008 18:03

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 ..."
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby thijsvn » 28. March 2008 18:14

you mean i should just simply remove the .txt extention?
Hu?!?
thijsvn
 
Posts: 3
Joined: 28. March 2008 17:47


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 80 guests