Page 1 of 2

htaccess file no longer works in 1.5.1

PostPosted: 26. January 2006 14:45
by Zepx
I found that xampp 1.5.1, .htaccess files no longer work.... but for 1.5.0 it stills work... any idea?

PostPosted: 26. January 2006 21:55
by japi
This is fixed in the new beta :)

But if you want you can change one word in the apache httpd.conf in your xampp/apache/conf folder.

On row 223 you should find a line
Code: Select all
AllowOverride None

Change it to
Code: Select all
AllowOverride All

and everything should work again.

PostPosted: 24. February 2006 14:32
by olsrey
ive done what you have said and instead of doing what it is meant to do i get a server error 500

PostPosted: 24. February 2006 16:19
by Wiedmann
ive done what you have said and instead of doing what it is meant to do i get a server error 500

Fine, then you can see that your ".htaccess" is working now. But you have an error in your ".htaccess". Please look into the "error.log".

PostPosted: 24. February 2006 18:02
by olsrey
my error.log file is empty :(

PostPosted: 24. February 2006 19:01
by Wiedmann
my error.log file is empty

Not possible.

(Every time you start/stop Apache you have an entry in the log.)

PostPosted: 24. February 2006 19:44
by olsrey
just so i know where is this file as the file i found is in under apache\logs\error.log is this correct

PostPosted: 24. February 2006 19:57
by olsrey
ive just reset my server and got the error again but this time there is some data in the error.log file
and this is the error line
Code: Select all
[Fri Feb 24 18:48:54 2006] [error] [client 192.168.2.1] (OS 3)The system cannot find the path specified.  : Could not open password file: C:/Program Files/Xammp/htdocs/stevie/.htpasswd

PostPosted: 24. February 2006 20:05
by Wiedmann
C:/Program Files/Xammp/htdocs/stevie/.htpasswd

- This file exists?
- You have enclosed this path with quotes in the ".htaccess"?

PostPosted: 24. February 2006 20:09
by olsrey
yea it exists and i did put it in the .htaccess can u write a simple .htaccess file for me incase i have written it wrong

PostPosted: 24. February 2006 20:20
by Wiedmann
yea it exists

can you open a "cmd.exe" and execute following command?
Code: Select all
dir "C:\Program Files\Xammp\htdocs\stevie\.htpasswd"


can u write a simple .htaccess file for me incase i have written it wrong

It would be easier you post your existing file. Because i don't know what you want to do with your ".htaccess".


BTW:
I think you have misstyped the path in the ".htaccess".

PostPosted: 24. February 2006 20:28
by olsrey
this is my .htaccess file
Code: Select all
AuthName "SUSPENDED ACCOUNT"
AuthType Basic
AuthUserFile "C:\\Program Files\\Xammp\\htdocs\\stevie\\.htpasswd"
AuthGroupFile /dev/null
require valid-user

PostPosted: 24. February 2006 21:00
by Wiedmann
1st:
I'm missing the output from the dir command above :?:

2nd:
Code: Select all
AuthUserFile "C:\\Program Files\\Xammp\\htdocs\\stevie\\.htpasswd"

this should be:
Code: Select all
AuthUserFile "C:/Program Files/Xammp/htdocs/stevie/.htpasswd"

PostPosted: 24. February 2006 21:10
by olsrey
1st it says this about the dir
"The system cannot find the path specified."

2nd i changed that value and now it doesnt even come up with the box to enter the username and password into where as my way it did

PostPosted: 24. February 2006 21:17
by Wiedmann
1st it says this about the dir
"The system cannot find the path specified."

So this is not true:
olsrey wrote:
Wiedmann wrote:- This file exists?

yea it exists