Question
I'm seeing the following error in my httpd error log:
[Wed Nov 02 14:36:32 2005] [error] [client 10.2.3.109] File does not exist: /usr
/local/www/twiki/usr, referer:
http://somehost.west.cmu.edu/twiki/bin/view/Internal/
TWikiAdminNextSteps
Environment
I did some "find -exec greps" for "File does not exist" and it does not seem to be coming from TWiki code. It could be Perl, Apache, or
FreeBSD. Has anyone seen this before? I saw the note about .htaccess file (
http://twiki.org/cgi-bin/view/Support/PathVarForTWikiRegistration
). However I examined the .htaccess file and there does not seem to be a typo there. I'll attach that as well.
Help is appreciated and thanks in advance!
BTW I have changed the FQDN and server admin mail list in the attached testenv output.
--
MarkYoshikawa - 04 Nov 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
If I am looking at this right, there are inconsistent file paths:
http://somehost.west.cmu.edu/twiki/bin/view/Internal/
TWikiAdminNextSteps?
and
/usr /local/www/twiki/usr
and from your testenv output
$dataDir: /usr/local/www/twiki/data
- Note
- This is the data directory where TWiki stores all topics.
You might start by looking here.
--
SteveRJones - 05 Nov 2005
Thanks Steve, but it seems with any page that I edit, this error occurs. I'm pretty sure I included $dataDir in the path where I did the find -exec. I tried to look for the string in the files in the whole distribution dir of "twiki/usr" and came up with nothing. I realize however that possibly the DOCUMENT_ROOT variable which is /usr/local/www/twiki might somehow have "/usr" appended to it. I did the same thing for that, find . -exec grep -H "usr" {} \; | less and then searched for DOCUMENT_ROOT. Maybe I'm not understanding how to look. Please let me know.
--
MarkYoshikawa - 12 Nov 2005
There seems to be an issue with DOCUMENT_ROOT and the TWiki path settings. If DOCUMENT_ROOT is set to
/usr/local/www/twiki then REQUEST_URI would be
/bin/testenv unless you specify individual directory settings in Apache's
httpd.conf file.
If you set just the DOCUMENT_ROOT, all path settings need to be in relation to this, e.g.
$scriptUrlPath = "/bin" and
$pubUrlPath = "/pub".
--
PeterThoeny - 12 Nov 2005
Ok Peter Thanks! I'll check that out and will report what I find out.
--
MarkYoshikawa - 16 Nov 2005