I installed Twiki, it kind of worked. I can edit some pages and save. However, I can not register new user.
The error message I got on IE6 is:
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
RCS: failed to create file path: Permission denied
In the error.log of Apache, it has this line:
| 22 Mar 2006 - 23:12 |
RCS: failed to create file /twiki/data/Main/TWikiUsers.txt: Permission denied at c:/twiki/lib/TWiki/Store/RcsFile.pm line 722.
I checked the code, the "RcsFile.pm line 722" means saving a file.
I checked
TWikiUsers.txt, it had 555 privilege and belonged to system.
I used "chmod 777 -R *" at /twiki to modify all the files under /twiki (too much? :>)
It worked, I could register one new user without any problem. But, when I tried to register the second new user, I got the
same error message as before.
I went to
TWikiUsers.txt, it changed to 555 again!.
Who modified it? TWiki program? Why did it not change it back?
Could anybody help me here?
--
EdwinMa - 22 Mar 2006
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Make sure all directories and files at and below
twiki/data and
twiki/pub are
owned by the webserver user. The
configure script tells you what the webserver user is.
--
PeterThoeny - 23 Mar 2006
Thanks for your answer.
I have all files under /twiki owned by system, which I got from configure: userid.
But still have this issue. I just don't understand why the privilege of
TWikiUsers.txt changed from 777 to 555 automatically
--
EdwinMa - 23 Mar 2006
Actually I used "chown -R system *" at /twiki
--
EdwinMa - 23 Mar 2006
Here is what I got in configure:
CGI user userid = system groups = [Cannot identify groups - no Cygwin 'id' or 'sh' command on path]
--
EdwinMa - 23 Mar 2006
Sorry, I am not familiar with Cygwin to help debug the groups problem. Hopefully someone else will help.
--
PeterThoeny - 23 Mar 2006
Thanks anyway.
I used "chgrp system -R *" at /twiki.
it works now.
I am not sure whether it is safe or not,
any comment?
--
EdwinMa - 23 Mar 2006
I only changed the data directory to my web user to fix this error (chown -R apache data/). I don't think it's a good idea to give the web user permissions to all of the TWiki directories.
--
AaronHooley - 30 Jan 2007