Question
Hello,
I am sure this is a permission issue but I cannot track it down. Running testenv shows no errors. I am using Fedora Core 2 and have tried mozilla, firefox and IE to browse. When I go to the
http://domain/twiki/bin/view
page everything looks fine however if I click on any link on that main page I get a page not found error in the browsers and apache states:
script not found or unable to stat: /var/www/twiki/bin/view.cgi, referer:
http://domain/twiki/bin/view
My permissions are set like this in data:
drwxrwxr-x 7 nobody users 4096 Apr 25 13:27 .
drwxr-xr-x 7 nobody apache 4096 Nov 20 00:45 ..
-rwxrwxr-x 1 nobody apache 0 Feb 1 2003 debug.txt
drwxrwxr-x 2 nobody apache 4096 Apr 25 12:56 _default
-rw-r--r-- 1 nobody apache 516 Apr 25 12:05 .htaccess
-rw-rw-r-- 1 nobody apache 25 Dec 17 2003 .htpasswd
-rwxrwxr-x 1 nobody apache 996 Apr 25 13:32 log200504.txt
drwxrwxr-x 2 nobody apache 4096 Apr 25 13:03 Main
-rwxrwxr-x 1 nobody apache 3419 Aug 13 2001 mime.types
drwxrwxr-x 2 nobody apache 4096 Apr 25 13:03 Sandbox
drwxrwxr-x 2 nobody apache 4096 Apr 25 13:03 Trash
drwxrwxr-x 2 nobody apache 28672 Apr 25 13:03 TWiki
-rwxrwxr-x 1 nobody apache 0 Aug 30 2004 warning.txt
Environment
--
ColinTisdall - 25 Apr 2005
Answer
Did you run the
testenv script?
It looks like your
$scriptUrlPath in TWiki.cfg points to the file path. It should be
/twiki/bin
--
PeterThoeny - 26 Apr 2005
Hi,
Thanks for the response. In the question I mentioned that I ran testenv and according to it there are no problems.
Also this is how my scriptUrlPath shows up in the TWiki.cfg:
$scriptUrlPath = "/twiki/bin";
Colin
--
ColinTisdall - 26 Apr 2005
Hello all,
So I found the problem but still do not understand how to fix it. All the links seem to point to some variation of this URL:
http://192.168.0.142/twiki/bin/view.cgi/Main/WebHome
The problem is the view.cgi should just be view. If I take the .cgi out of the url it works fine. Why is it adding the .cgi and how can I get rid of it?
Colin
--
ColinTisdall - 26 Apr 2005
I fixed the problem by commenting out this line in the TWiki.cfg:
#$scriptSuffix = ".cgi";
--
ColinTisdall - 26 Apr 2005