htaccess file no longer works in 1.5.1

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

htaccess file no longer works in 1.5.1

Postby Zepx » 26. January 2006 14:45

I found that xampp 1.5.1, .htaccess files no longer work.... but for 1.5.0 it stills work... any idea?
Zepx
 
Posts: 4
Joined: 31. October 2005 05:37

Postby japi » 26. January 2006 21:55

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.
japi
 
Posts: 16
Joined: 23. January 2006 19:48

Postby olsrey » 24. February 2006 14:32

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

Postby Wiedmann » 24. February 2006 16:19

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

Postby olsrey » 24. February 2006 18:02

my error.log file is empty :(
olsrey
 
Posts: 10
Joined: 24. February 2006 14:20

Postby Wiedmann » 24. February 2006 19:01

my error.log file is empty

Not possible.

(Every time you start/stop Apache you have an entry in the log.)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby olsrey » 24. February 2006 19:44

just so i know where is this file as the file i found is in under apache\logs\error.log is this correct
olsrey
 
Posts: 10
Joined: 24. February 2006 14:20

Postby olsrey » 24. February 2006 19:57

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
olsrey
 
Posts: 10
Joined: 24. February 2006 14:20

Postby Wiedmann » 24. February 2006 20:05

C:/Program Files/Xammp/htdocs/stevie/.htpasswd

- This file exists?
- You have enclosed this path with quotes in the ".htaccess"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby olsrey » 24. February 2006 20:09

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
olsrey
 
Posts: 10
Joined: 24. February 2006 14:20

Postby Wiedmann » 24. February 2006 20:20

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

Postby olsrey » 24. February 2006 20:28

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
olsrey
 
Posts: 10
Joined: 24. February 2006 14:20

Postby Wiedmann » 24. February 2006 21:00

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

Postby olsrey » 24. February 2006 21:10

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
olsrey
 
Posts: 10
Joined: 24. February 2006 14:20

Postby Wiedmann » 24. February 2006 21:17

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

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 35 guests