Question
Hello,
This is just a minor question, one that doesn't seem to affect the use of the wiki at all. Almost every page view and page change, I get the following entry in my apache error_log:
script not found or unable to stat: /var/apache/twiki/bin/var
I'm curious as to why it's looking for this, because there isn't a script named var in the bin directory, nor does there appear to be any reference to a file named var in the code, either in the bin directory or in the lib directory (and its subdirectory).
While writing out this question, I've narrowed it down a bit: this appears to happen for every single get or post that requires authentication, and doesn't happen when authentication is not required.
- TWiki version: "01 Dec 2001"
- Web server: Apache 1.3.
- Server OS: Linux
- Web browser: Mozilla 1.0
- Client OS: Linux
--
TWikiGuest - 23 Jul 2002
Answer
It sounds like something is crossed someting up in your twiki/bin/.htaccess quite likely the
AuthUserFile line.
--
DrewCard - 24 Jul 2002
Well, that line does contain a /var (
AuthUserFile /var/apache/twiki/data/.htpasswd to be precise) but the .htaccess file uses
/filepath/to/TWiki/data/.htpasswd and not
/urlpath/[...] - so I assumed that entering the filesystem absolute path was correct.
--
TWikiGuest - 24 Jul 2002
I see. Does running /twiki/bin/testenv give anything? Does authentication work? How about adding users?
This still suggests a basic authentication issue...
off searching playing
Ah-ha!
In my .htaccess the first line is:
Redirect /twiki/index.html http://XXX.YYY.ZZZ/twiki/bin/view
In my setup it has no effect since we are in /twiki/bin/ ... if I change it thus:
Redirect /twiki/bin/index.html http://XXX.YYY.ZZZ/twiki/bin/var
And I then take my browser to
http://XXX.YYY.ZZZ/twiki/bin/index.html
and in my error log I get:
[Sat Jul 27 10:41:43 2002] [error] /usr/local/www/twiki/bin/var not found or unable to stat
May not help directly, but it tells me it's something in the apache setup, between your httpd.conf and .htaccess
Sorry to not be of more help.
--
DrewCard - 27 Jul 2002
Oh, everything works. As I said above, this doesn't seem to affect how TWiki runs at all. The only reason I know about it is because I happened to look at my apache error logs. The error is generated, then authentication proceeds as it should.
I'm not sure why the Redirect directive would point to twiki/bin/var, apart from generating the error message. That file doesn't exist, and I'm just trying to figure out where it's called. Oh, and my Redirect directive points index.html to twiki/bin/view, while httpd.conf doesn't refer to twiki/bin/var at all.
--
TWikiGuest - 31 Jul 2002