Test the environment for TWiki

Please read the TWikiInstallationNotes for more information on TWiki installation.

Environment variables:

ALLUSERSPROFILEC:\Documents and Settings\All Users
APPDATAC:\Documents and Settings\tgb001\Application Data
ASMROOTC:\Program Files\CA\Unicenter Software Delivery\SD
COMMONPROGRAMFILESC:\Program Files\Common Files
COMPUTERNAMEWDKCPHTGB1W
COMSPECC:\WINNT\system32\cmd.exe
CONTENT_LENGTH1100
CONTENT_TYPEapplication/x-www-form-urlencoded
GATEWAY_INTERFACECGI/1.0
HOMEDRIVEH:
HOMEPATH\
HOMESHARE\\smdgfildkcph001\users\tgb001
HTTP_HOST127.0.0.1
LOGONSERVER\\SMDGDCODKCPH011
MQSERVERTRSPROD/TCP/172.28.172.71(1415)
NUMBER_OF_PROCESSORS1
OSWindows_NT
OS2LIBPATHC:\WINNT\system32\os2\dll;
PATHD:\Perl\bin\;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\MQSeries Client\bin;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\Program Files\Host Integration Server\system
PATHEXT.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO/foo/bar
PERLperl.exe
PROCESSOR_ARCHITECTUREx86
PROCESSOR_IDENTIFIERx86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_LEVEL6
PROCESSOR_REVISION0803
PROGRAMFILESC:\Program Files
PROMPT$P$G
PWDH:/Software/TWikiOnLocalPc/TWiki
REMOTE_ADDR
REMOTE_USERTorbenGB
REQUEST_METHODGET
REQUEST_URI/TWiki/bin/testenv
SERVER_PORT80
SERVER_PROTOHTTP/1.1
SERVER_SOFTWARETWikiHttpd
SYSTEMDRIVEC:
SYSTEMROOTC:\WINNT
TEMP.
TMPC:\DOCUME~1\tgb001\LOCALS~1\Temp
USERDNSDOMAINMDG.APMOLLER.NET
USERDOMAINMDG
USERNAMEtgb001
USERPROFILEC:\Documents and Settings\tgb001
WINDIRC:\WINNT
_WSAREAMD LYNGBYVEJ
_WSNAMEMCXPL01W

CGI Setup:

Operating system:Windows (MSWin32)
Perl version:5.6.1, build 635 (ActiveState)
@INC library path:../lib
D:\Perl/lib
D:\Perl/site/lib
TWiki/lib
TWiki/bin
D:/Perl/lib
D:/Perl/site/lib
Note: This is the Perl library path, used to load TWiki modules, third-party modules used by some plugins, and Perl built-in modules.
TWiki module in @INC path:
OK, TWiki.pm found (TWiki version: 01 Feb 2003)
Required Perl modules:
CGI (2.752)
CGI::Carp (1.20)
File::Copy (2.03)
Digest::SHA1 (2.01)
MIME::Base64 (2.12)
Net::SMTP (2.24)
Optional Perl modules:
Algorithm::Diff (1.01)
MIME::Base64 (2.12)
POSIX (1.03)
PATH_INFO:/foo/bar
Note: For a URL such as http://127.0.0.1/TWiki/bin/testenv/foo/bar, the correct PATH_INFO is /foo/bar, without any prefixed path components. Test this now - particularly if you are using Apache or IIS, or are using a web hosting provider. The page resulting from the test link should have a PATH_INFO of /foo/bar.
mod_perl:Not used for this script (mod_perl not loaded)
User:tgb001
Note: Your CGI scripts are executing as this user.
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 tgb001. Otherwise, changes to topics will not be logged by RCS.
Group(s):[Can't identify groups - no Cygwin 'id' or 'sh' command on path]

Test of TWiki.cfg Configuration:

$wikiHomeUrl:http://your.domain.com/twiki
Note: This is the link of the TWiki icon in the upper left corner.
$defaultUrlHost:http://localhost
Note: This must be the protocol and host part (with optional port number) of the TWiki URL.
Warning: This does not match HTTP_HOST
$scriptUrlPath:/TWiki/bin
Note: This must be the URI of the TWiki cgi-bin directory.
$pubUrlPath:/TWiki/pub
Note: This must be the URI of the public directory.This is not set correctly if the /TWiki/pub/wikiHome.gif image below is broken:
$pubDir:H:/Software/TWikiOnLocalPc/TWiki/TWiki/pub
Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath.
$templateDir:H:/Software/TWikiOnLocalPc/TWiki/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 the tgb001 user.
$dataDir:H:/Software/TWikiOnLocalPc/TWiki/TWiki/data
Note: This is the data directory where TWiki stores all topics.
$mailProgram:/usr/sbin/sendmail -t -oi -oeq
Note: This is not typically used on Windows - the Perl Net::SMTP module is used instead.
$rcsDir:/usr/bin
Note: This is the directory where RCS is located.
Warning: RCS program /usr/bin/ci not found. Check $rcsDir setting in TWiki.cfg. TWiki will not work (unless you are using TWiki's built-in RCS implementation, RcsLite).
$lsCmd:H:\Software\TWikiOnLocalPc\TWiki\UNIX\ls.exe -a
Note: This is the file list program TWiki uses to list topics.
$egrepCmd:H:\Software\TWikiOnLocalPc\TWiki\UNIX\grep.exe -E
Note: This is a program TWiki uses for search.
$fgrepCmd:H:\Software\TWikiOnLocalPc\TWiki\UNIX\grep.exe -F
Note: This is a program TWiki uses for search.
$safeEnvPath:/bin:/usr/bin
Note: This is used to initialise the PATH variable, and is used to run the 'diff' program used by RCS, as well as to run shell programs such as cmd.exe or Cygwin's 'bash'.

To use 'bash' with ActiveState Perl, see the PERL5SHELL section below - this is recommended if Cygwin is installed.

Path and Shell Environment

Original PATH:D:\Perl\bin\;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\MQSeries Client\bin;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\Program Files\Host Integration Server\system
Note: This is the PATH value passed in from the web server to this script - it is reset by TWiki scripts to the PATH below, and is provided here for comparison purposes only.
Current PATH:/bin:/usr/bin
Note: This is the actual PATH setting that will be used by Perl to run programs. It is normally identical to $safeEnvPath, unless that variable is empty.
PERL5SHELL:
Note: This environment variable is used by ActiveState and other Win32 Perls to run commands from TWiki scripts - it determines which shell program is used to run commands that use 'pipes'. Examples of shell programs are cmd.exe, command.com (aka 'DOS Prompt'), and Cygwin's 'bash' (recommended if Cygwin is installed).

To use 'bash' with ActiveState or other Win32 Perls, you should set the PERL5SHELL environment variable to something like c:/YOURCYGWINDIR/bin/bash.exe -c. This should be set in the System Environment, and ideally set directly in the web server (e.g. using the Apache SetEnv command, followed by an Apache restart). Once this is done, you should re-run testenv to check that PERL5SHELL is set properly.

Internationalisation and Locale Setup

$useLocale:0
Note: This TWiki.cfg setting controls whether locales are used by Perl and 'grep'.
Warning: Using Perl on Windows, which may have missing or incorrect locales (in Cygwin or ActiveState Perl, respectively) - use of $useLocale = 0 is recommended unless you know your version of Perl has working locale support.
$siteLocale:en_US.ISO-8859-1
Note: This TWiki.cfg parameter sets the site-wide locale - for example, de_AT.ISO-8859-1 where 'de' is the language code, 'AT' the country code and 'ISO-8859-1' is the character set. Use the locale -a command on your system to determine available locales.
Warning: Unable to set locale to en_US.ISO-8859-1, actual locale is Danish_Denmark.1252 - please test your locale settings.
$upperNational:
Note: This TWiki.cfg parameter is used when $useLocale is 0, to work around missing or non-working locales. It is also used with Perl 5.005 for efficiency reasons - upgrading to Perl 5.6.1 with working locales is recommended, and removes the need for this. If required, this parameter should be set to the upper case accented characters you require in your locale.
$lowerNational:
Note: This TWiki.cfg parameter is used whenever $upperNational is used. This parameter should be set to the lower case accented characters you require in your locale.