Question
When I run the testenv script from either a local or remote browser, I get an error message that says "CGI User and Group: User: apache Note: This is the user your cgi-bin scripts are executing. Warning: Since your CGI script is not running as user nobody you need to change the locks in the *,v
RCS files of the TWiki distribution from nobody to apache."
I have gone to what I consider herculien lengths to correct this condition with no success. I have changed the locks on all the ",v" files under the data and pub directories like the instructions say. I have wiped out the entire installation and chowned the zip file to apache, su -'d to user apache from root and reinstalled. I have changed the locks while logged in as apache. I have changed the ownership to apache using chown as apache and root. I have changed the ownership using Konqueror graphical interface. I am fresh out of ideas and simply cannot solve this problem without some help. Needless to say, when I try to use the TWiki to create a new topic, I get an error saying that TWiki cannot write to file...
"Topic save error During save of file
Main 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' /var/www/html/twiki/data/Main/WebHome.txt 2>&1 1>/dev/null ci:/var/www/html/twiki/data/Main/WebHome.txt: Permission denied
Go back in your browser and save your changes locally. "
I had some other errors with regard to file locations and quickly eliminated those problems by modifying variables in the TWiki.conf.
Any suggestions would be welcome at this point.
Thanks,
Tim B.
.
- TWiki version:TWiki20011201
- Web server:Apache
- Server OS:RH 7.2
- Web browser: Mozilla/Konqueror/IE
- Client OS: Windoze 2k, Windoze 98, Windoze NT, Various flavors of Linux and Sun OS's
--
TimBogart - 14 Aug 2002
Answer
Did you try deleting all the ,v files instead of fooling around with their locks and ownership?
The installation documentation offers that as an alternative.
Depending on what your problem really is, this might work.
--
MitchellModel - 15 Aug 2002
You imply that you have already done this, but just to be on the safe side: I had that same error message the other day on a newly created web. I had forgotten to make apache the owner of the directory containing the web...
--
BjornGraabek - 15 Aug 2002
Just a quick checklist:
- apache has to own all the directories and files in your data and pub directories (including the ,v files), as well as the .htpasswd file if user authentication is on (I have been bitten by this more than once)
- apache has to have write permissions to all those files and directories
- the rcs locks have to be set to the user apache (an easy check is tu use
rlog -l * in the data directories, apache should be listed under locks: strict)
- the twiki has to be actually executing under user apache, which could not necesarily be the case if there is some
Execsuid mechanism active in apache (which I guess is not your case from the original question), otherwise replace "apache" in all of the checklist by the correct user. Your server logs should give you more information if this is the case.
--
EdgarBrown - 12 Oct 2002