Test the CGI environment for TWiki

Please read the TWikiInstallationNotes for more information on TWiki installation.

Environment variables:

ALLUSERSPROFILEC:\Documents and Settings\All Users.WINNT
COMMONPROGRAMFILESC:\Program Files\Common Files
COMPUTERNAMEDEMOCRITUS
COMSPECC:\WINNT\system32\cmd.exe
CONTENT_LENGTH0
EXCHICONSC:\Program Files\Exchsrvr\bin\maildsmx.dll
GATEWAY_INTERFACECGI/1.1
HTTPSoff
HTTP_ACCEPT*/*
HTTP_ACCEPT_ENCODINGgzip, deflate
HTTP_ACCEPT_LANGUAGEen-us
HTTP_CONNECTIONKeep-Alive
HTTP_HOST209.192.221.164
HTTP_USER_AGENTMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
INSTANCE_ID1
LOCAL_ADDR192.168.4.3
LOGNAMEnobody
NUMBER_OF_PROCESSORS1
OSWindows_NT
OS2LIBPATHC:\WINNT\system32\os2\dll;
PATHC:\cygwin\bin\;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
PATHEXT.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO/twiki/bin/testenv_new.pl
PATH_TRANSLATEDc:\inetpub\wwwroot\twiki\bin\testenv_new.pl
PERL5LIBC:\Inetpub\wwwroot\twiki\lib
PERL5SHELLC:/cygwin/bin/bash.exe -c
PROCESSOR_ARCHITECTUREx86
PROCESSOR_IDENTIFIERx86 Family 6 Model 7 Stepping 3, GenuineIntel
PROCESSOR_LEVEL6
PROCESSOR_REVISION0703
PROGRAMFILESC:\Program Files
RCSINIT-x,v
REMOTE_ADDR209.192.221.164
REMOTE_HOST209.192.221.164
REQUEST_METHODGET
SCRIPT_NAME/twiki/bin/testenv_new.pl
SERVER_NAME209.192.221.164
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/5.0
SYSTEMDRIVEC:
SYSTEMROOTC:\WINNT
TEMPC:\WINNT\TEMP
TMPC:\WINNT\TEMP
TZEST5EDT
USERPROFILEC:\Documents and Settings\Default User.WINNT
WINDIRC:\WINNT

CGI Setup:

Operating system:Windows
Perl version:5.6.1, build 631 (ActiveState)
Perl modules:
CGI (2.752)
CGI::Carp (1.20)
File::Copy (2.03)
Digest::SHA1 (1.02)
MIME::Base64 (2.12)
Net::SMTP (2.15)
PATH_INFO:
Note: For a URL such as http://209.192.221.164/twiki/bin/testenv_new.pl/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:iusr_democritus
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 iusr_democritus. Otherwise, changes to topics will not be logged by RCS.
Member of group(s):iusr_democritus administrators

Test of TWiki.cfg Configuration:

$wikiHomeUrl:http://209.192.221.164/twiki
Note: This is the link of the TWiki icon in the upper left corner.
$defaultUrlHost:http://209.192.221.164
Note: This must be the protocol and host part (with optional port number) of the TWiki URL.
$scriptUrlPath:/twiki/bin
Note: This must be the URI of the TWiki cgi-bin directory.
Warning: This does not match REQUEST_URI
$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:c:/Inetpub/wwwroot/twiki/pub
Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath.
$templateDir:c:/twiki/templates
Note: This is the TWiki template directory, as seen from the file system.
$dataDir:c:/twiki/data
Note: This is the data directory where TWiki stores all topics.
$mailProgram:c:/sendmail/sendmail.exe -t -oi -oeq
Note: This is not typically used on Windows - the Perl Net::SMTP module is used instead.
$rcsDir:c:/cygwin/bin
Note: This is the directory where RCS is located.
RCS Version:5.7
Note: This is the version of RCS which will be used.
$lsCmd:/cygwin/bin/ls
Note: This is the file list program TWiki uses to list topics.
$egrepCmd:/cygwin/bin/egrep
Note: This is a program TWiki uses for search.
$fgrepCmd:/cygwin/bin/fgrep
Note: This is a program TWiki uses for search.
$safeEnvPath:/cygdrive/c/cygwin/bin;/cygdrive/c/WINNT/system32
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.

Selected Environment Variables

Original PATH:C:\cygwin\bin\;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
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:/cygdrive/c/cygwin/bin;/cygdrive/c/WINNT/system32
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:C:/cygwin/bin/bash.exe -c
Note: This environment variable is used by ActiveState Perl 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 Perl, 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.