Question
I have just installed Twiki (10 Dec 2001) and I have some errors on the testenv page:
1. User: SYSTEM
Note: This is the user your cgi-bin scripts are executing.
Warning: Since your CGI script is not running as user nobodyyou need to change the locks in the *,v
RCS files of the TWiki distribution from nobody to SYSTEM.
[I followed the
RCS changes VERY carefully and go NO errors when I ran the diffs or did the other tests for errors in that section of the
CookBook. So I am not sure why I am getting this error.]
2. $templateDir: /twiki/templates
Note: This is the TWiki template directory, as seen from the file system.
Warning: Security issue: This directory should not be writable by SYSTEM user.
[I know what this says but am not sure how this happened; apparently in the
RCS changes, the owner of
this file got changed when it shouldn't have.]
3. $mailProgram: /usr/sbin/sendmail -t -oi -oeq
Note: This is the mail program TWiki uses to send mail.
Warning: Mail program /usr/sbin/sendmail not found. Check the path.
[Again, I understand the error but have no idea why sendmail wasn't installed at some point
in the process. My Twiki is on Windows 2000 so it doesn't have the file as part of that os.]
Thes are the only errors on the testenv page.
When I tried to add myself as a member, I got the following error:
Software error:
Can't call method "mail" on an undefined value at ../lib/TWiki/Net.pm line 187.
For help, please send mail to the webmaster (
ken@kentompkinsPLEASENOSPAM.org), giving this error message and the time and date of the error.
[I assume that this is because sendmail was not installed/working.]
The Twiki does display --
http://68.46.88.89/bin/view/Main/WebHome -- but I want to get everything fixed
before I begin to add content.
Thanks....
KenTompkins
.
- TWiki version: 10 Dec 2001
- Web server: Apache 1.3 (?)
- Server OS: Win2000
- Web browser: Mozilla
- Client OS: Win2000
--
KenTompkins - 03 Oct 2002
Answer
Re issue 1 - you need to use the user you are running as when you re-lock the
RCS files - see the Cookbook on this point. Not a big issue, you can just delete the shipped *,v files to keep it simple, losing history before point of install.
Re issue 2 - this is probably because you are using Cygwin in default mode with no real security. If you really want security, use a Unix/Linux box - on Win2000 you might be able to use
ntsec
mode in Cygwin but I found this quite confusing and gave up.
Re issue 3 - the mail server you specified in the TWiki setup is probably not reachable. If you have Net::SMTP installed, this should be used, but you need to check with another program that you specified a valid SMTP mail host in
TWikiPreferences. Not having sendmail is fine on Win2000. The
TWikiBetaRelease gives a better error message.
BTW it's best to create new questions from
Support.WebHome so they get noticed.
--
RichardDonkin - 05 Oct 2002
Re issue 2 -
I ran into this as well. You need to make sure the group SYSTEM (or whoever it says) does not have write permission to the template directory.
In Win2k you can do this by Right-clicking the directory in an explorer window and choosing properties. Then go to the Security tab. There you can add/remove/change who has permission to do what. In this case select the SYSTEM user from the list of names and then uncheck the checkbox next to Write in the bottom pane.
Re issue 3 - Just a quick addition Cygwin now has the exim package availible. Which is a drop in replacement for sendmail. It even takes the same arguments so I was able to replace sendmail with exim in the TWiki.cfg
$mailProgram = "/usr/bin/exim -t -oi -oeq";
--
ChrisOConnor - 21 Nov 2002