Question
I have been trying for weeks to install twiki on sourceforge but have been continuously failing. Before giving up, I thought I'd try the support forum here (sourceforge support folks don't seem to know). I did look at the other topics about sourceforge, but that didn't help either.
The deployment is at
http://dance.sourceforge.net.
The links show a ? - and are not "realized" links. However, clicking on them does show the data to be present.
testenv is at
http://dance.sourceforge.net/cgi-bin/testenv
I couldn't figure out why it says the directory was not writable by nobody - I've checked that it is writable. Here's the listing of htdocs:
somik@sc8-pr-shell1:/home/groups/d/da/dance/htdocs$ ls -l
total 1796
-rw-r--r-- 1 somik dance 1265907 Feb 1 2003 TWiki20030201.zip
-rw-rw-r-- 1 somik dance 453477 Feb 1 2003 TWikiDocumentation.html
-rw-rw-r-- 1 somik dance 52417 Feb 1 2003 TWikiHistory.html
drwxrwxr-x 8 nobody dance 4096 Feb 1 2003 data
-rw-rw-r-- 1 somik dance 784 Jul 11 23:12 index.html
drwxrwxr-x 4 somik dance 4096 Aug 3 19:29 lib
-rw-rw-r-- 1 somik dance 19440 Feb 1 2003 license.txt
drwxrwxr-x 8 nobody dance 4096 Jul 11 00:08 pub
-rw-rw-r-- 1 somik dance 4334 Feb 1 2003 readme.txt
drwxrwxr-x 2 somik dance 4096 Jul 16 20:23 templates
somik@sc8-pr-shell1:/home/groups/d/da/dance/htdocs$
Here's the listing of pub:
somik@sc8-pr-shell1:/home/groups/d/da/dance/htdocs/pub$ ls -l
total 32
drwxr-xr-x 3 nobody dance 4096 Nov 18 2002 Know
drwxr-xr-x 2 nobody dance 4096 Apr 7 2002 Main
drwxr-xr-x 2 nobody dance 4096 Apr 20 2002 Sandbox
drwxr-xr-x 9 nobody dance 4096 Jul 16 20:22 TWiki
drwxr-xr-x 2 nobody dance 4096 Dec 3 2001 Trash
-rwxr-xr-x 1 nobody dance 1078 Jan 14 2000 favicon.ico
drwxr-xr-x 2 nobody dance 4096 Jul 11 00:08 icn
-rwxr-xr-x 1 nobody dance 2877 Jun 7 1999 wikiHome.gif
Here's the listing of data:
somik@sc8-pr-shell1:/home/groups/d/da/dance/htdocs/data$ ls -l
total 36
drwxr-xr-x 2 nobody dance 4096 Jan 30 2003 Know
drwxr-xr-x 2 nobody dance 4096 Jul 24 07:02 Main
drwxr-xr-x 2 nobody dance 4096 Feb 1 2003 Sandbox
drwxr-xr-x 2 nobody dance 12288 Jul 16 20:24 TWiki
drwxr-xr-x 2 nobody dance 4096 Feb 1 2003 Trash
drwxr-xr-x 2 nobody dance 4096 Jan 30 2003 _default
-rwxr-xr-x 1 nobody dance 0 Feb 1 2003 debug.txt
-rwxr-xr-x 1 nobody dance 3419 Aug 13 2001 mime.types
-rwxr-xr-x 1 nobody dance 0 Feb 1 2003 warning.txt
somik@sc8-pr-shell1:/home/groups/d/da/dance/htdocs/data$
The permissions of data and pub are set to owner nobody and group dance (my project group). nobody also has write permissions to these two directories(recursive).
I'd be grateful for any advice.
Environment
--
SomikRaha - 04 Aug 2003
Answer
As a start, and in case you have not seen, please read
TWikiOnSourceForge.
For security reasons I do not recommend to put the template and data dirs below htdocs. Create a twiki dir below your project root and move those dirs there. Also, you need to specify an absolute path to those two dirs. Fixes in TWiki.cfg in this case:
$wikiHomeUrl = "http://dance.sourceforge.net/";
$templateDir = "/home/groups/d/da/dance/twiki/templates";
$dataDir = "/home/groups/d/da/dance/twiki/data";
--
PeterThoeny - 04 Aug 2003
I tried your recommendation. However, although I am able to see the wiki, I am unable to edit and save stuff. Pls note, I had requested sourceforge support to change ownership of data and pub to nobody recursively (which they did).
Here's my current directory structure under /home/groups/d/da/dance/twiki:
somik@sc8-pr-shell1:/home/groups/d/da/dance/twiki$ ls -l
total 8
drwxrwxr-x 8 nobody dance 4096 Feb 1 2003 data
drwxrwxr-x 2 somik dance 4096 Jul 16 20:23 templates
When I try to save a topic, I get:
Topic save error
During save of file Main.WebHome an error was found by the
version control system. Please notify your TWiki
administrator.
/usr/bin/ci -q -l -m'none' -t-none -w'guest' /home/groups/d/da/dance/twiki/data/Main/WebHome.txt 2>&1
ci: /home/groups/d/da/dance/twiki/data/Main/WebHome.txt,v: Permission denied
Go back in your browser and save your changes locally.
Upon asking sourceforge support, they said it was bcos I asked them to give me nobody ownership. Apparently nobody can't run ci. When I took a peek at the file, here are the file perms:
somik@sc8-pr-shell1:/home/groups/d/da/dance/twiki/data$ ls -l Main/WebHome.txt,v
-rwxr-xr-x 1 nobody dance 11862 Feb 1 2003 Main/WebHome.txt,v
somik@sc8-pr-shell1:/home/groups/d/da/dance/twiki/data$
I can see that this file does not have group write permissions. I tried writing perl scripts that would attempt to do this, but that didn't work (neither did your script on the link you posted above). I couldn't see the dummy1 or dummy2 directories being created under data (for that matter, the use wiki statement didn't work. I had to provide an absolute path for dataDir)
At this point, I am not sure what to do...
Thanks a lot!
--
SomikRaha - 04 Aug 2003
I do not understand the NFS setup at SF, but this is how it looks like: The web server has cgi user
nobody as reported by the testenv script. However, from the ssh shell login, it is
nfsnobod. Here is a sample file from TWiki.org:
drwxrwxr-x 2 nfsnobod twiki 159744 Aug 10 00:34 .
-rw-r--r-- 1 nfsnobod twiki 7674 Aug 7 13:53 WebHome.txt
-r--r--r-- 1 nfsnobod nfsnobod 658943 Aug 7 13:53 WebHome.txt,v
So, ask SF support to set your TWiki files to be owned by user
nfsnobod as seen from the shell. Please let us know if that worked, or better yet, update the
TWikiOnSourceForge topic.
Also, see if you can create a new topic.
--
PeterThoeny - 10 Aug 2003