Tags:
create new tag
view all tags

Question

I tried unsuccessfully to install and configure my first TWiki site.

To eliminate the possibility of a corrupt file, I downloaded the latest version (4.0.2) and started the installation and configuration process again from scratch.

Unfortunately, I see the same error messages, included below from the scripts identified by the respective URLs:

http://nwswww.wh.lucent.com/~nsgtools/twiki2/bin/configure

START INCLUDED ERROR MESSAGES ***********************

Configuration Use this page to set the configuration options for TWiki. Fill in the settings, and then press 'Next'.

If you are installing TWiki for the first time If you just want to get up and running, the only section you need to worry about below is General path settings. You can always come back and configure other settings later. If your TWiki site is already working, continue to browse to the TWiki Reference Manual. You will now need to consider how you are going to manage authentication and access control. See the reference manual sections on authentication and access control, and the Security Setup section below. If you are on an odd platform there are a lot of topics on TWiki.org describing how to configure TWiki for different platforms. If you get stuck there is a lot of support available on TWikiIRC (irc.freenode.net, channel #twiki) and at TWiki:Support. Explanation of color codes: Settings marked like this are required (they must have a value). Any errors in your configuration will be highlighted. Warnings are non-fatal, but are often a good indicator that something that is wrong.

SettingsClick the buttons below to open each sectionOpen all options

Environment variables(read only) DOCUMENT_ROOT /home/nwsweb/www/docroot GATEWAY_INTERFACE CGI/1.1 HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, / HTTP_ACCEPT_ENCODING gzip, deflate HTTP_ACCEPT_LANGUAGE en-us HTTP_CONNECTION Keep-Alive HTTP_HOST nwswww.wh.lucent.com HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; FunWebProducts) PATH /usr/bin:/bin:/usr/ucb:/opt/local/bin:/opt/exptools/bin:/apxtools/bin QUERY_STRING ... REQUEST_METHOD GET REQUEST_URI /~nsgtools/twiki2/bin/configure SCRIPT_FILENAME /home/nsgtools/public_html/twiki2/bin/configure SCRIPT_NAME /~nsgtools/twiki2/bin/configure ... SERVER_NAME nwswww.wh.lucent.com SERVER_PORT 80 SERVER_PROTOCOL HTTP/1.1 SERVER_SOFTWARE Apache/1.3.26 (Unix) mod_jk/1.2.4 PHP/4.3.1 TZ US/Eastern

CGI Setup(read only) 2 errors 13 warnings Operating system Unix (solaris) Perl version @INC library path /home/nsgtools/public_html/twiki2/lib/CPAN/lib//arch/ /home/nsgtools/public_html/twiki2/lib/CPAN/lib//5.00503/sun4-solaris/ /home/nsgtools/public_html/twiki2/lib/CPAN/lib//5.00503/ /home/nsgtools/public_html/twiki2/lib/CPAN/lib// /home/nsgtools/public_html/twiki2/lib /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 . This is the Perl library path, used to load TWiki modules, third-party modules used by some plugins, and Perl built-in modules.

CGI bin directory /home/nsgtools/public_html/twiki2/bin

Warning: nul might not be an executable script - please check it (and its permissions) manually TWiki module in @INC path Error: 'TWiki.pm' could not be loaded. The error was: [Fri Apr 7 16:42:25 2006] configure: [Fri Apr 7 16:42:25 2006] configure: syntax error at /home/nsgtools/public_html/twiki2/lib/TWiki.pm line 269, near "PubDir TemplateDir ScriptUrlPath LocalesDir )" [Fri Apr 7 16:42:25 2006] configure: [Fri Apr 7 16:42:25 2006] configure: (Might be a runaway multi-line () string starting on line 268) [Fri Apr 7 16:42:25 2006] configure: [Fri Apr 7 16:42:25 2006] configure: BEGIN not safe after errors--compilation aborted at /home/nsgtools/public_html/twiki2/lib/TWiki.pm line 274.

Error: Check path to twiki/lib and check that LocalSite.cfg is present and readable Required Perl modules Error 0.15 CGI 2.46 Algorithm::Diff 1.1901 FileHandle 2.00 CGI::Carp 1.13 File::Spec 0.6 File::Copy 2.02

Optional Perl Modules CGI::Cookie 1.06 MIME::Base64 Warning: not installed. May be required for SHA1 password encoding Digest::SHA1 Warning: not installed. May be required for SHA1 password encoding Text::Diff 0.35 POSIX 1.02 Digest::MD5 Warning: not installed. May be required for MD5 encoded passwords CGI::Session Warning: not installed. May be required for sessions Net::SMTP Warning: not installed. May be required for registration emails and mailnotify Locale::Maketext::Lexicon Warning: not installed. May be required for I18N translations Unicode::MapUTF8 Warning: not installed. May be required for I18N conversions Unicode::Map8 Warning: not installed. May be required for I18N conversions Unicode::Map Warning: not installed. May be required for I18N conversions Unicode::String Warning: not installed. May be required for I18N conversions Jcode Warning: not installed. May be required for I18N conversions

PATH_INFO For a URL such as http://nwswww.wh.lucent.com/~nsgtools/twiki2/bin/configure/foo/bar, the correct PATH_INFO is /foo/bar, without any prefixed path components. Click here to test this - particularly if you are using mod_perl, Apache or IIS, or are using a web hosting provider. Look at the new path info here. It should be /foo/bar.

mod_perl Not used for this script mod_perl is not loaded into Apache

CGI user userid = nsgtools groups = nsgtools,nsgtools Your CGI scripts are executing as this user.

Original PATH /usr/bin:/bin:/usr/ucb:/opt/local/bin:/opt/exptools/bin:/apxtools/bin 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 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, in which case this will be the webserver users standard path..

patch Warning: 'patch' program was found on the PATH but is not GNU patch - this may cause problems. patch: Invalid options. patch: Usage: patch [-blNR] [-c|-e|-n] [-d dir] [-D define] [-i patchfile]\ [-o outfile] [-p num] [-r rejectfile] [file] It is used by the UpgradeTwiki script to upgrade an existing TWiki installation

General path settings1 warning If you are a first-time installer; once you have set up the next six paths below, your TWiki should work - try it. You can always come back and tweak other settings later. Security Note: Only the URL paths listed below should be browseable from the web. If you expose any other directories (such as lib or templates) you are opening up routes for possible hacking attempts.

This is the root of all TWiki URLs e.g. http://myhost.com:123. {DefaultUrlHost} This is the 'cgi-bin' part of URLs used to access the TWiki bin directory e.g. /twiki/bin See http://twiki.org/cgi-bin/view/TWiki.ShorterUrlCookbook for more information on setting up TWiki to use shorter script URLs.

{ScriptUrlPath} Attachments URL path e.g. /twiki/pub Security Note: files in this directory are not protected by TWiki access controls. If you require access controls, you will have to use webserver controls (e.g. .htaccess on Apache) This is not set correctly if the link below is broken: Go to "pub" directory

{PubUrlPath} Attachments store (file path, not URL), must match /twiki/pub e.g. /usr/local/twiki/pub {PubDir} Template directory e.g. /usr/local/twiki/templates {TemplateDir} Topic files store (file path, not URL) e.g. /usr/local/twiki/data {DataDir} Translation files directory (file path, not URL) e.g. /usr/local/twiki/locales Warning: I guessed this setting. You are advised to confirm this setting (and any other guessed settings) and hit 'Next' to save before changing any other settings. {LocalesDir} Suffix of TWiki CGI scripts (e.g. .cgi or .pl). You may need to set this if your webserver requires an extension. {ScriptSuffix}

Operating system EXPERT {OS} and {DetailedOS} are calculated in the TWiki code. You should only need to override if there is something badly wrong with those calculations. {OS} may be one of UNIX WINDOWS VMS DOS MACINTOSH OS2 {OS} EXPERT The value of Perl $OS {DetailedOS}

Security setup1 error Sessions You can use persistent CGI session tracking even if you are not using login. This allows you to have persistent session variables - for example, skins. Client sessions are not required for logins to work, but TWiki will not be able to remember users unless there is some other mechanism - such as browser cacheing of authentication - available. # See TWikiUserAuthentication for a full discussion of the pros and cons of using persistent sessions. Error: The CGI::Session Perl module is required for session support, but is not available. {UseClientSessions} Absolute file path of the directory in which session files are stored. Defaults to /tmp. Security Note: The directory must not be browseable from the web, otherwise it could be used to mount an attack on the server! {Sessions}{Dir} EXPERT Set the session timeout, in seconds. The session will be cleared after this amount of time without the session being accessed. The default is 6 hours (21600 seconds). NoteBy default, session expiry is done "on the fly" by the same processes used to serve TWiki requests. As such it imposes a load on the server. When there are very large numbers of session files, this load can become significant. For best performance, you can set {Sessions}{ExpireAfter} to a negative number, which will mean that TWiki won't try to clean up expired sessions using CGI processes. Instead you should use a cron job to clean up expired sessions. The standard maintenance cron script tools/tick_twiki.pl includes this function.

{Sessions}{ExpireAfter} EXPERT If you have persistent sessions enabled, then TWiki will use a cookie in the browser to store the session ID. If the client has cookies disabled, then TWiki will not be able to record the session. As a fallback, TWiki can rewrite local URLs to pass the session ID as a parameter to the URL. This is a potential security risk, because it increases the chance of a session ID being stolen (accidentally or intentionally) by another user. If this is turned off, users with cookies disabled will have to re-authenticate for every secure page access (unless you are using {Sessions}{MapIP2SID}). {Sessions}{IDsInURLs} EXPERT It's important to check that the user trying to use a session is the same user who originally created the session. TWiki does this by making sure, before initializing a previously stored session, that the IP address stored in the session matches the IP address of the user asking for that session. Turn this off if a client IP address may change during the lifetime of a session (unlikely) {Sessions}{UseIPMatching} EXPERT For compatibility with older versions, TWiki supports the mapping of the clients IP address to a session ID. You can only use this if all client IP addresses are known to be unique. If this option is enabled, TWiki will not store cookies in the browser. The mapping is held in the file $cfg{Sessions}{Dir}/ip2sid. If you turn this option on, you can safely turn {Sessions}{IDsInURLs} off. {Sessions}{MapIP2SID} Authentication TWiki supports different ways of responding when the user asks to log in (or is asked to log in as the result of an access control fault). They are: none - Don't support logging in, all users have access to everything. TWiki::Client::TemplateLogin - Redirect to the login template, which asks for a username and password in a form. Does not cache the ID in the browser, so requires client sessions to work. TWiki::Client::ApacheLogin - Redirect to an '...auth' script for which Apache can be configured to ask for authorization information. Does not require client sessions, but works best with them enabled.

{LoginManager} noneTWiki::Client::ApacheLoginTWiki::Client::TemplateLogin Guest user's login name (guest) {DefaultUserLogin} Guest user's wiki name (TWikiGuest) {DefaultUserWikiName} An admin user login is is required by the install script for some addons and plugins, usually to gain write access to the TWiki web. (TWikiAdminGroup) {AdminUserWikiName} EXPERT Group of users that can use special action=repRev and action=delRev on save and ALWAYS have edit powers. See TWikiDocumentation for an explanation of twiki groups. This user will also run all the standard cron jobs, such as statistics and mail notification. Make sure you edit this topic if you enable authentication {SuperAdminGroup} EXPERT Name of topic in the {UsersWebName} web where registered users are listed. Automatically maintained by the standard registration scripts. If you change this setting you will have to use TWiki to manually rename the existing topic {UsersTopicName} EXPERT Map login name to Wiki name via the mapping in the topic named in {UsersTopicName}. Set this to $FALSE for .htpasswd authenticated sites where the user's wiki name is the name they use to log in, or if you have some other way of making the mapping to a Wiki name (e.g. a local Plugin). {MapUserToWikiName} EXPERT Comma-separated list of scripts that require the user to authenticate. With TemplateLogin, any time an unauthenticated user attempts to access one of these scripts, they will be redirected to the login script. With ApacheLogin, they will be redirected to the logon script (note login and logon; they are different scripts). This approach means that only the logon script needs to be specified as require valid-user when using Apache authentication. If you want finer access control (e.g. authorised users only in one web but open access in another) then you should clear this list, and use TWiki Permissions to control access. Users wishing to make changes will have to log in by clicking a "log in" link instead of being automatically redirected when they try to edit.

{AuthScripts} EXPERT Authentication realm. This is normally only used in the login prompt screen by the TWiki::Client::TemplateLogin manager. {AuthRealm} Passwords Name of the password handler implementation. The password handler manages the passwords database, and provides password lookup, and optionally password change, services. TWiki ships with two alternative implementations: TWiki::Users::HtPasswdUser - handles 'htpasswd' format files, with passwords encoded as per the HtpasswdEncoding TWiki::Users::ApacheHtpasswdUser - should behave identically to HtpasswdUser, but uses the CPAN:Apache::Htpasswd package to interact with Apache. It is shipped mainly as a demonstration of how to write a new password manager. You can provide your own alternative by implementing a new subclass of TWiki::Users::Password, and pointing {PasswordManager} at it in lib/LocalSite.cfg. If 'none' is selected, users will not be able to change passwords, and will always be authenticated by the TemplateLogin manager, regardless of what username or password they enter. This may be useful when you want to enable logins so TWiki can identify contributors, but you don't care about passwords.

{PasswordManager} TWiki::Users::HtPasswdUsernoneTWiki::Users::ApacheHtpasswdUser Path to the file that stores passwords, for the TWiki::Users::HtPasswdUser password manager. You can use the htpasswd Apache program to create a new password file with the right encoding. {Htpasswd}{FileName} Password encryption, for the TWiki::Users::HtPasswdUser password manager. You can use the htpasswd Apache program to create a new password file with the right encoding. crypt is the default, and should be used on Linux/Unix. sha1 is recommended for use on Windows. md5 may be useful on sites where password files are required to be portable. In this case, the {AuthRealm} is used with the username and password to generate the encrypted form of the password, thus: user:{AuthRealm}:password. Take note of this, because it means that if the {AuthRealm} changes, any existing MD5 encoded passwords will be invalidated by the change! plain stores passwords as plain text (no encryption). {Htpasswd}{Encoding} cryptsha1md5plain Registration If you want users to be able to use a login ID other than their wikiname, you need to turn this on. It controls whether the 'LoginName' box appears during the user registration process. If you are using intranet authentication instead of TWiki authentication, you probably need to turn this on. {Register}{AllowLoginName} EXPERT Hide password in registration email to the user Note that TWiki sends admins a separate confirmation. {Register}{HidePasswd} EXPERT Whether registrations must be verified by the user following a link sent in an email to the user's registered email address {Register}{NeedVerification} Paths EXPERT Path control. If set, overrides the default PATH setting to control where TWiki looks for programs. Check notes for your operating system. NOTE: it is better to use full pathnames in the paths to external programs, rather than relying on this path. Unix or Linux path separator is : ensure diff and shell (Bourne or bash type) is found on the path. Windows ActiveState Perl, with non-Cygwin RCS, OR no PERL5SHELL setting. path separator is ; The Windows system directory (e.g. c:\winnt\system32) is required in this path. Must NOT use '/' in pathnames as this upsets cmd.exe - single '' is OK using Perl single-quoted string. Windows: ActiveState Perl, with Cygwin RCS and PERL5SHELL set to 'c:/cygwin/bin/bash.exe -c' path separator is ; best to avoid 'c:/foo' type paths, because it can cause a Perl 'Insecure directory in $ENV{PATH}' error. The best approach is to convert 'c:/foo' to '/cygdrive/c/foo' - odd looking but it works! The Windows system directory (e.g. /cygdrive/c/winnt/system32) is required in this path. For example: /cygdrive/c/YOURCYGWINDIR/bin;/cygdrive/c/YOURWINDOWSDIR/system32 Windows: ActiveState Perl, with non-Cygwin RCS, OR no PERL5SHELL setting. path separator is ';' The Windows system directory is required in this path. Must NOT use / in directories on the path as this upsets cmd.exe - single '\' is OK using Perl single quoted string.

{SafeEnvPath} Miscellaneous EXPERT Remove .. from Warning: Can't find topic Support.filename , to stop includes of relative paths. {DenyDotDotInclude} EXPERT Allow %INCLUDE of URLs. This is disabled by default, because it is possible to mount a denial-of-service (DoS) attack on a TWiki site using INCLUDE and URLs. Only enable it if you are in an environment where a DoS attack is not a high risk. {INCLUDE}{AllowURLs} EXPERTAllow the use of SCRIPT tags in content. if this is set false, all SCRIPT sections will be removed from the body of topics. They can still be used in the HEAD section, though. Note that this may prevent some plugins from functioning correctly. {AllowInlineScript} EXPERTFilter-in regex for uploaded (attached) file names (Matching filenames will have .txt appended) WARNING: Be sure to update this list with any configuration or script filetypes that are automatically run by your web server {UploadFilter} EXPERTFilter-in regex for webnames, topic names, usernames, include paths and skin names {NameFilter} EXPERT If this is set, the the search module will use more relaxed rules governing regular expressions searches. {ForceUnsafeRegexes} EXPERT Build the path to /twiki/bin from the URL that was used to get this far. This can be useful when rewriting rules or redirection are used to shorten URLs. Note that displayed links are incorrect after failed authentication if this is set, so unless you really know what you are doing, leave it alone. {GetScriptUrlFromCgi} EXPERT Remove port number from URL. If set, and a URL is given with a port number e.g. http://my.server.com:8080/twiki/bin/view, this will strip off the port number before using the url in links. {RemovePortNumber}

Anti-spam measures Standard TWiki incorporates some simple anti-spam measures to protect e-mail addresses and control the activities of benign robots. These should be enough to handle intranet requirements. Administrators of public (internet) sites are strongly recommended to investigate the BlackListPlugin Text added to email addresses to prevent spambots from grabbing addresses e.g. set to 'NOSPAM' to get fred@userPLEASENOSPAM.co.ru rendered as fred@userPLEASENOSPAM.co.NOSPAM.ru {AntiSpam}{EmailPadding} By default, a META tag is generated to tell robots not to index pages viewed in TWiki. You can ask for this tag to be removed in the event that you want topics to be indexed by robots, such as Google. Note that only "normal view" pages can be indexed. If there are any parameters to the view, then it can never be indexed. This is to help prevent inappropriate pages (like the raw view) from ever being spidered. {AntiSpam}{RobotsAreWelcome}

Log files Whether or not to to log different actions in the Access log (in order of how frequently they occur in a typical installation). Information in the Access log is used in gathering web statistics, and is useful as an audit trail of TWiki activity. {Log}{view}

{Log}{search}

{Log}{changes}

{Log}{rdiff}

{Log}{edit}

{Log}{save}

{Log}{upload}

{Log}{attach}

{Log}{rename}

{Log}{register} File for configuration messages generated by the configure script. (usually very very low volume). {ConfigurationLogName} File for debug messages (usually very low volume). 2024-02-05 gets expanded to YYYYMM (year, month), allowing you to rotate logs. {DebugFileName} Warnings - low volume, hopefully! 2024-02-05 gets expanded to YYYYMM (year, month), allowing you to rotate logs. {WarningFileName} Access log - high volume, depending on what you enabled in {Log} above. 2024-02-05 gets expanded to YYYYMM (year, month), allowing you to rotate logs. {LogFileName}

Localisation2 warnings Configuration items in this section control two things: recognition of national (non-ascii) characters and the system locale used by TWiki, which influences how programs TWiki and external programa called by it behave regarding internationalization.

Note: for user interface internationalization, the only settings that matter are {UserInterfaceInternationalisation}, which enables user interface internationalisation, and {Site}{CharSet}, which controls which charset TWiki will use for storing topics and displaying content for the users. As soon as {UserInterfaceInternationalisation} is set and the required (Locale::Maketext::Lexicon and Encode/MapUTF8 Perl modules) are installed (see the CGI Setup section above), the multi-language user interface will just work.

Enable user interface internationalisation, i.e. presenting the user interface in the users own language. Under {UserInterfaceInternationalisation}, check every language that you want your site to support. This setting is only used when {UserInterfaceInternationalisation} is enabled. If you disable all languages, internationalisation will also be disabled, even if {UserInterfaceInternationalisation} is enabled: internationalisation support for no languages doesn't make any sense.

Allowing all languages is the best for really international sites. But for best performance you should enable only the languages you really need. English is the default language, and is always enabled.

{UserInterfaceInternationalisation} Enable the language da {Languages}{da}{Enabled} Enable the language de {Languages}{de}{Enabled} Enable the language es {Languages}{es}{Enabled} Enable the language fr {Languages}{fr}{Enabled} Enable the language it {Languages}{it}{Enabled} Enable the language nl {Languages}{nl}{Enabled} Enable the language pt {Languages}{pt}{Enabled} Enable the language 'zh-cn' {Languages}{'zh-cn'}{Enabled} Enable the language 'zh-tw' {Languages}{'zh-tw'}{Enabled} Set the timezone (this only effects the display of times, all internal storage is still in GMT). May be gmtime or servertime {DisplayTimeValues} gmtimeservertime Locale - set to enable operating system level locales and internationalisation support for 8-bit character sets Warning: Perl 5.8 is required if you are using TWiki's experimental UTF-8 support {UseLocale} Site-wide locale - used by TWiki and external programs such as grep, and to specify the character set in which content must be presented for the user's web browser. The language part also prevents English plural handling for non-English languages. If the language is not English, TWiki won't try to calculate plurals for WikiNames automatically. Note that {Site}{Locale} is ignored unless {UseLocale} is set. Locale names are not standardised - check 'locale -a' on your system to see what's installed, and check this works using command line tools. You may also need to check what charsets your browsers accept - the 'preferred MIME names' at http://www.iana.org/assignments/character-sets are a good starting point. WARNING: Topics are stored in site character set format, so data conversion of file names and contents will be needed if you change locales after creating topics whose names or contents include 8-bit characters. Examples: de_AT.ISO-8859-15 - Austria with ISO-8859-15 for Euro ru_RU.KOI8-R - Russia ja_JP.eucjp - Japan C - English only; no I18N features regarding character encodings and external programs. Warning: Unable to set locale to 'en_US.ISO-8859-1'. The actual locale is 'C' - please test your locale settings. This warning can be ignored if you are not planning to use locales (e.g. your site uses English only) - or you can set {Site}{Locale} to 'C', which should always work. {Site}{Locale} EXPERT Disable to force explicit listing of national chars in regexes, rather than relying on locale-based regexes. Intended for Perl 5.6 or higher on platforms with broken locales: should only be disabled if you have locale problems. {Site}{LocaleRegexes} EXPERT If a suitable working locale is not available (i.e. {UseLocale} is disabled), OR you are using Perl 5.005 (with or without working locales), OR {Site}{LocaleRegexes} is disabled, you can use WikiWords with accented national characters by putting any '8-bit' accented national characters within these strings - i.e. {UpperNational} should contain upper case non-ASCII letters. This is termed 'non-locale regexes' mode. If 'non-locale regexes' is in effect, WikiWord linking will work, but some features such as sorting of WikiWords in search results may not. These features depend on {UseLocale}, which can be set independently of {Site}{{LocaleRegexes}, so they will work with Perl 5.005 as long as {UseLocale} is set and you have working locales. {UpperNational} EXPERT {LowerNational} EXPERT Change this only if you must match a specific locale (from 'locale -a') whose character set is not supported by your chosen conversion module (i.e. Encode for Perl 5.8 or higher, or Unicode::MapUTF8 for other Perl versions). For example, if the locale 'ja_JP.eucjp' exists on your system but only 'euc-jp' is supported by Unicode::MapUTF8, set this to 'euc-jp'. If you don't define it, it will automatically be defaulted from the {Site}{Locale}. Only used if {UseLocale} is set. {Site}{CharSet} EXPERT Site language - change this from the default if it is incorrect. Only used if {UseLocale} is set. {Site}{Lang} EXPERT Site language - change this from the default if it is incorrect. Only used if {UseLocale} is set. {Site}{FullLang} EXPERT Change non-existant plural topic name to singular, e.g. TestPolicies to TestPolicy. Only works in English. {PluralToSingular}

Store settings26 errors 3 warnings Default store implementation. RcsWrap uses normal RCS executables. RcsLite uses a 100% Perl simplified implementation of RCS. RcsLite is useful if you don't have, and can't install, RCS - for example, on a hosted platform. It will work, and is compatible with RCS, but is not quite as fast. EXPERT You can manually add options to LocalSite.cfg to select a different store for each web. If $TWiki::cfg{Store}{Fred} is defined, it will be taken as the name of a perl class (which must implement the methods of TWiki::Store::RcsFile). The TWiki::Store::Subversive class is an example implementation using the Subversion version control system as a data store. Note: The 'diff' program found on the path is used by RcsWrap to compare revisions

Warning: 'diff' program was found on the PATH but is not GNU diff - this may cause problems. diff: illegal option -- - usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2 diff [-bitw] [-C number] file1 file2 diff [-bitw] [-D string] file1 file2 diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name] directory1 directory2

{StoreImpl} RcsWrapRcsLite File security for new directories. You may have to adjust these permissions to allow (or deny) users other than the webserver user access to directories that TWiki creates. This is an octal number representing the standard UNIX permissions (e.g. 755 == rwxr-xr-x) {RCS}{dirPermission} File security for new files. You may have to adjust these permissions to allow (or deny) users other than the webserver user access to files that TWiki creates. This is an octal number representing the standard UNIX permissions (e.g. 644 == rw-r--r--) {RCS}{filePermission} EXPERT Some file-based Store implementations (RcsWrap and RcsLite for example) store attachment meta-data separately from the actual attachments. This means that it is possible to have a file in an attachment directory that is not seen as an attachment by TWiki. Sometimes it is desirable to be able to simply copy files into a directory and have them appear as attachments, and that's what this feature allows you to do. Considered experimental. {AutoAttachPubFiles} EXPERT Perl regular expression matching suffixes valid on plain text files Defines which attachments will be treated as ASCII in RCS {RCS}{asciiFileSuffixes} EXPERT Set this if you want to use RCS subdirectories instead of storing ,v files alongside the topics. Not recommended. {RCS}{useSubDir} EXPERT Set this if your RCS cannot check out using the -p option. May be needed in some windows installations (not required for cygwin) {RCS}{coMustCopy} Full path to GNU-compatible egrep program. This is used for searching. %CS{|-i}% will be expanded to -i for case-sensitive search or to the empty string otherwise. Similarly for %DET, which controls whether matching lines are required. (see the documentation on these options with GNU grep for details). Warning: '/bin/egrep' program was found on the PATH but is not GNU /bin/egrep - this may cause problems. /bin/egrep: illegal option -- - usage: egrep [ -bchilnsv ] [ -e exp ] [ -f file ] [ strings ] [ file ] ... {RCS}{EgrepCmd} Full path to GNU-compatible fgrep program. This is used for searching. Warning: '/bin/fgrep' program was found on the PATH but is not GNU /bin/fgrep - this may cause problems. /bin/fgrep: illegal option -- - usage: fgrep [ -bchilnsvx ] [ -e exp ] [ -f file ] [ strings ] [ file ] ... {RCS}{FgrepCmd} RcsWrap initialise a file as binary. %FILENAME|F% will be expanded to the filename. Error: Error: /usr/bin/rcs did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{initBinaryCmd} RcsWrap initialise a topic file. Error: Error: /usr/bin/rcs did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{initTextCmd} RcsWrap uses this on Windows to create temporary binary files during upload. Error: Error: /usr/bin/rcs did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{tmpBinaryCmd} RcsWrap check-in. %USERNAME|S% will be expanded to the username. %COMMENT|U% will be expanded to the comment. Error: Error: /usr/bin/ci did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{ciCmd} RcsWrap check in, forcing the date. %DATE|D% will be expanded to the date. Error: Error: /usr/bin/ci did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{ciDateCmd} RcsWrap check out. %REVISION|N% will be expanded to the revision number Error: Error: /usr/bin/co did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{coCmd} RcsWrap file history. Error: Error: /usr/bin/rlog did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{histCmd} RcsWrap revision info about the file. Error: Error: /usr/bin/rlog did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{infoCmd} RcsWrap revision info about the revision that existed at a given date. %REVISIONn|N% will be expanded to the revision number. %CONTEXT|N% will be expanded to the number of lines of context. Error: Error: /usr/bin/rlog did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{rlogDateCmd} RcsWrap differences between two revisions. Error: Error: /usr/bin/rcsdiff did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{diffCmd} RcsWrap lock a file. Error: Error: /usr/bin/rcs did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{lockCmd} RcsWrap unlock a file. Error: Error: /usr/bin/rcs did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{unlockCmd} RcsWrap delete a specific revision. Error: Error: /usr/bin/rcs did not return a version number (or might not exist..) TWiki will probably not work with this RCS setup. Either correct the setup, or switch to RcsLite. To enable RCSLite you need to change the setting of {StoreImpl} to 'RcsLite'. {RCS}{delRevCmd} Path to the directory where the RCS store implementation will create plugin work areas. Plugin work areas are directories that are managed by plugins, for example for temporary files. The directory has to be readable and writable by the webserver user. {RCS}{WorkAreaDir} Set to enable hierarchical webs. Without this setting, TWiki will only allow a single level of webs. If you set this, you can use multiple levels, like a directory tree, i.e. webs within webs. See MultiLevelWikiWebs for more details. {EnableHierarchicalWebs} EXPERT Name of the web where documentation and default preferences are held. If you change this setting, you must make sure the web exists and contains appropriate content, and upgrade scripts may no longer work (i.e. don't change it unless you are certain that you know what you are doing!) {SystemWebName} EXPERT Name of the web used as a trashcan (where deleted topics are moved) If you change this setting, you must make sure the web exists. {TrashWebName} EXPERT Name of the web where usertopics are stored. If you change this setting, you must make sure the web exists and contains appropriate content, and upgrade scripts may no longer work (i.e. don't change it unless you are certain that you know what you are doing!) {UsersWebName}

Mail and Proxies1 warning EXPERT Name of topic in each web that has notification registrations. If you change this setting you will have to use TWiki to manually rename the topic in all existing webs {NotifyTopicName} Remove IMG tags in notification mails. {RemoveImgInMailnotify} Mail program. If Net::SMTP is installed, it will be used in preference. Otherwise this needs to be a command-line program that accepts MIME format mail messages on standard input, and mails them. Warning: /usr/sbin/sendmail was not found. Check the path. {MailProgram} Mail host for outgoing mail. This is only used if Net::SMTP is installed. Examples: mail.your.company CAUTION This setting can be overridden by a setting of SMTPMAILHOST in TWikiPreferences. Make sure you delete that setting if you are using a TWikiPreferences topic from a previous release of TWiki. {SMTP}{MAILHOST} Mail domain sending mail, required if you are using Net::SMTP. SMTP requires that you identify the server sending mail. If not set, Net::SMTP will guess it for you. Example: twiki.your.company. CAUTION This setting can be overridden by a setting of SMTPSENDERHOST in TWikiPreferences. Make sure you delete that setting if you are using a TWikiPreferences topic from a previous release of TWiki. {SMTP}{SENDERHOST} EXPERT Some environments require outbound HTTP traffic to go through a proxy server. (e.g. proxy.your.company). CAUTION This setting can be overridden by a PROXYHOST setting in TWikiPreferences. Make sure you delete the setting from there if you are using a TWikiPreferences topic from a previous release of TWiki. {PROXY}{HOST} EXPERT Some environments require outbound HTTP traffic to go through a proxy server. Set the port number here (e.g: 8080). CAUTION This setting can be overridden by a PROXYPORT setting in TWikiPreferences. Make sure you delete the setting from there if you are using a TWikiPreferences topic from a previous release of TWiki. {PROXY}{PORT}

Statistics Number of top viewed topics to show in statistics topic {Stats}{TopViews} Number of top contributors to show in statistics topic {Stats}{TopContrib} EXPERT Name of statistics topic {Stats}{TopicName}

Miscellaneous settings EXPERT Set to enable experimental mirror-site support. If this name is different to MIRRORSITENAME, then this TWiki is assumed to be a mirror of another. You are highly recommended not to dabble with this experimental, undocumented, untested feature! {SiteWebTopicName} EXPERT Name of site-level preferences topic in the {SystemWebName} web. If you change this setting you will have to use TWiki and manually rename the existing topic. (i.e. don't change it unless you are certain that you know what you are doing!) {SitePrefsTopicName} EXPERT TopicName of the site-level local preferences topic. If this topic exists, any settings in it will override settings in {SitePrefsTopicName}. You are strongly recommended to keep all your local changes in a {LocalSitePreferences} topic rather than changing TWikiPreferences, as it will make upgrading a lot easier. {LocalSitePreferences} EXPERT Name of main topic in a web. If you change this setting you will have to use TWiki to manually rename the topic in all existing webs (i.e. don't change it unless you are certain that you know what you are doing!) {HomeTopicName} EXPERT Name of preferences topic in a web. If you change this setting you will have to use TWiki to manually rename the topic in all existing webs (i.e. don't change it unless you are certain that you know what you are doing!) {WebPrefsTopicName} EXPERT How many links to other revisions to show in the bottom bar. 0 for all {NumberOfRevisions} EXPERT If this is set to a > 0 value, and the revision control system supports it (RCS does), then if a second edit of the same topic is done by the same user within this number of seconds, a new revision of the topic will NOT be created (the top revision will be replaced). Set this to 0 if you want all topic changes to create a new revision (as required by most formal development processes). {ReplaceIfEditedAgainWithin} EXPERT When a topic is edited, the user takes a "lease" on that topic. If another user tries to also edit the topic while the lease is still active, they will get a warning. Leases are released automatically when the topic is saved; otherwise they remain active for {LeaseLength} seconds from when the edit started (or was checkpointed). Note: Leases are not locks; they are purely advisory. Leases can always be broken, but they are valuable if you want to avoid merge conflicts (e.g. you use highly structured data in your topic text and want to avoid ever having to deal with conflicts)

{LeaseLength} EXPERT Even if the other users' lease has expired, then you can specify that they should still get a (less forceful) warning about the old lease for some additional time after the lease expired. You can set this to 0 to suppress these extra warnings completely, or to -1 so they are always issued, or to a number of seconds since the old lease expired. {LeaseLengthLessForceful} EXPERT Pathname to file that maps file suffixes to MIME types : For Apache server set this to Apache's mime.types file pathname, for example /etc/httpd/mime.types, or use the default shipped in the TWiki data directory. {MimeTypesFileName} EXPERT Directory where registration approvals are held. Should be somewhere that is not browsable from the web. {RegistrationApprovals} EXPERT If set, this will cause TWiki to treat warnings as errors that will cause TWiki to die. Provided for use by Plugin and Skin developers, who should develop with it switched on. {WarningsAreErrors}

Plugins The plugins listed below were discovered by searching the @INC path for modules that match the TWiki standard e.g. TWiki/Plugins/MyPlugin.pm. see Installed Plugins for diagnostics CommentPlugin {Plugins}{CommentPlugin}{Enabled} EditTablePlugin {Plugins}{EditTablePlugin}{Enabled} EmptyPlugin {Plugins}{EmptyPlugin}{Enabled} InterwikiPlugin {Plugins}{InterwikiPlugin}{Enabled} PreferencesPlugin {Plugins}{PreferencesPlugin}{Enabled} RenderListPlugin {Plugins}{RenderListPlugin}{Enabled} SlideShowPlugin {Plugins}{SlideShowPlugin}{Enabled} SmiliesPlugin {Plugins}{SmiliesPlugin}{Enabled} SpreadSheetPlugin {Plugins}{SpreadSheetPlugin}{Enabled} TablePlugin {Plugins}{TablePlugin}{Enabled} WysiwygPlugin {Plugins}{WysiwygPlugin}{Enabled} Plugins evaluation order. If set to a comma-separated list of plugin names, will change the execution order of plugins so the listed subset of plugins are executed first. The default execution order is alphabetical on plugin name. {PluginsOrder}

Total: 20 warnings Total: 29 errors

END INCLUDED ERROR MESSAGES ***********************

and

http://nwswww.wh.lucent.com/~nsgtools/twiki2/bin/testenv

START INCLUDED ERROR MESSAGES ***********************

Test the environment for TWiki Please read the TWikiInstallationNotes for more information on TWiki installation. Environment variables: DOCUMENT_ROOT /home/nwsweb/www/docroot GATEWAY_INTERFACE CGI/1.1 HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, / HTTP_ACCEPT_ENCODING gzip, deflate HTTP_ACCEPT_LANGUAGE en-us HTTP_CONNECTION Keep-Alive HTTP_HOST nwswww.wh.lucent.com HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; FunWebProducts) PATH /usr/bin:/bin:/usr/ucb:/opt/local/bin:/opt/exptools/bin:/apxtools/bin QUERY_STRING ... REQUEST_METHOD GET REQUEST_URI /~nsgtools/twiki2/bin/testenv SCRIPT_FILENAME /home/nsgtools/public_html/twiki2/bin/testenv SCRIPT_NAME /~nsgtools/twiki2/bin/testenv ... SERVER_NAME nwswww.wh.lucent.com SERVER_PORT 80 SERVER_PROTOCOL HTTP/1.1 SERVER_SOFTWARE Apache/1.3.26 (Unix) mod_jk/1.2.4 PHP/4.3.1 TZ US/Eastern

CGI Setup: Operating system: (solaris) Perl version: 5.00503 @INC library path: /home/nsgtools/public_html/twiki2/lib/CPAN/lib//arch/ /home/nsgtools/public_html/twiki2/lib/CPAN/lib//5.00503/sun4-solaris/ /home/nsgtools/public_html/twiki2/lib/CPAN/lib//5.00503/ /home/nsgtools/public_html/twiki2/lib/CPAN/lib// /home/nsgtools/public_html/twiki2/lib /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 . Note: This is the Perl library path, used to load TWiki modules, third-party modules used by some plugins, and Perl built-in modules. [Fri Apr 7 16:52:25 2006] testenv: Use of uninitialized value at testenv line 355. TWiki module in @INC path: [Fri Apr 7 16:52:25 2006] testenv: Global symbol "$var" requires explicit package name at /home/nsgtools/public_html/twiki2/lib/TWiki.pm line 274. Warning: 'TWiki.pm' not found - check path to twiki/lib and edit twiki/bin/setlib.cfg if necessary. Required Perl modules: CGI (2.46) CGI::Carp (1.13) File::Copy (2.02) File::Spec (0.6) FileHandle (2.00) Warning: 'Digest::SHA1' not installed - check TWiki documentation to see if this is required. Warning: 'MIME::Base64' not installed - check TWiki documentation to see if this is required. Warning: 'Net::SMTP' not installed - check TWiki documentation to see if this is required. Optional Perl modules: Algorithm::Diff (1.1901) Note: Optional module 'MIME::Base64' not installed - check TWiki documentation to see if your configuration needs this module. POSIX (1.02) Note: Optional module 'Encode' not installed - check TWiki documentation to see if your configuration needs this module. Note: Optional module 'Unicode::MapUTF8' not installed - check TWiki documentation to see if your configuration needs this module. Note: Optional module 'Unicode::Map' not installed - check TWiki documentation to see if your configuration needs this module. Note: Optional module 'Unicode::Map8' not installed - check TWiki documentation to see if your configuration needs this module. Note: Optional module 'Jcode' not installed - check TWiki documentation to see if your configuration needs this module. Note: Optional module 'Digest::MD5' not installed - check TWiki documentation to see if your configuration needs this module. PATH_INFO: Note: For a URL such as http://nwswww.wh.lucent.com/~nsgtools/twiki2/bin/testenv/foo/bar, the correct PATH_INFO is /foo/bar, without any prefixed path components. Test this now - particularly if you are using mod_perl, 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 into Apache) [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 485. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 485. User: 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 . Otherwise, changes to topics will not be logged by RCS. Fix: If needed, relock all the rcs files to user Group(s): [Can't identify groups - no Cygwin 'id' or 'sh' command on path]

Test of TWiki.cfg Configuration: [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 533. $defaultUrlHost: Note: This must match the protocol and host part (with optional port number) of the TWiki URL. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 539. Warning: This does not match HTTP_HOST [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 546. $scriptUrlPath: Note: This must match the 'cgi-bin' part of the URL used to access the TWiki cgi-bin directory. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 556. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 562. $pubUrlPath: Note: This must be the URL of the public directory.This is not set correctly if the [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 566. /wikiHome.gif image below is broken: [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 567. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 570. $pubDir: Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 575. Error: Directory does not exist or file wikiHome.gif does not exist in this directory. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 586. $templateDir: Note: This is the TWiki template directory, as seen from the file system. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 590. Error: Directory does not exist or file view.tmpl does not exist in this directory. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 601. $dataDir: Note: This is the data directory where TWiki stores all topics. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 605. Error: Directory does not exist. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 618. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 618. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 620. Warning: Mail program not found. Check the path. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 626. $mailProgram: Note: [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 628. This is the mail program TWiki uses to send mail. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 637. $rcsDir: Note: This is the directory where RCS is located. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 643. Warning: [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 646. RCS program /ci not found. Check $rcsDir setting in TWiki.cfg. TWiki will not work (unless you are using TWiki's built-in RCS implementation, RcsLite). [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 672. $lsCmd: Note: This is the file list program TWiki uses to list topics. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 676. Warning: List program not found. Check the path. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 685. $egrepCmd: Note: This is a program TWiki uses for search. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 689. Warning: Search program not found. Check the path. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 698. $fgrepCmd: Note: This is a program TWiki uses for search. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 702. Warning: Search program not found. Check the path. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 711. $safeEnvPath: 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 [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 715. Bourne shell or 'bash'.[Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 729. Warning: Security issue: $safeEnvPath set to empty string. Check TWiki.cfg.

Path and Shell Environment Original PATH: /usr/bin:/bin:/usr/ucb:/opt/local/bin:/opt/exptools/bin:/apxtools/bin 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: /usr/bin:/bin:/usr/ucb:/opt/local/bin:/opt/exptools/bin:/apxtools/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. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 762. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 762. [Fri Apr 7 16:52:26 2006] testenv: Use of uninitialized value at testenv line 791.

END INCLUDED ERROR MESSAGES ***********************

I modified 2 files, which are included below:

nsgtools.1: cd /home/nsgtools/public_html/twiki2/bin

/home/nsgtools/public_html/twiki2/bin

nsgtools.1: cat LocalLib.cfg # TWiki Enterprise Collaboration Platform, http://TWiki.org/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. For # more details read LICENSE in the root of this distribution. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # LocalLib.cfg: local path settings for TWiki

use vars qw( $twikiLibPath $CPANBASE );

# -------------- Path to lib directory containing TWiki.pm. # # REQUIRED # The absolute path to the 'lib' directory in your installation..

$twikiLibPath = "/home/nsgtools/public_html/twiki2/lib";

# -------------- Extra path components to include in @INC # OPTIONAL # If you need to use perl modules that are not installed in the standard # directories (e.g. you have downloaded extra modules for use with plugins) # then you can add the absolute paths to those modules below. You can list # as many directories as you want, separated by commas.

# @localPerlLibPath = ( '/path/to/dir' );

# http://www.perl.com/pub/a/2002/04/10/mod_perl.html?page=3 has good advice # on installing CPAN modules without superuser privileges.

# -------------- Only needed to work around an Apache 2.0 bug on Unix # OPTIONAL # If you are running TWiki on Apache 2.0 on Unix you might experience # TWiki scripts hanging forever. This is a known Apache 2.0 bug. A fix is # available at http://issues.apache.org/bugzilla/show_bug.cgi?id=22030. # You are recommended to patch your Apache installation. # # As a workaround, uncomment ONE of the lines below. As a drawback, # errors will not be reported to the browser via CGI::Carp any more.

# open(STDERR, ">>/dev/null"); # throw away cgi script errors, or # open(STDERR, ">>/tmp/error.log"); # redirect errors to a log file

1; # Required for successful module loading

/home/nsgtools/public_html/twiki2/bin

nsgtools.1: cd ../lib

/home/nsgtools/public_html/twiki2/lib

nsgtools.1: cat LocalSite.cfg # Example site-specific configuration file for TWiki, held in 'lib' directory. # # This is distributed as LocalSite.cfg.txt - if for some reason you can't, # or don't want to, use configure to manage your site configuration, you can # copy this file to LocalSite.cfg edit it manually. # # LocalSite.cfg overrides TWiki.cfg, so there is no risk of your settings # being overwritten when you upgrade. # # Only the most commonly used settings are listed in LocalSite.cfg.txt # See TWiki.cfg to copy across the other (seldom changed) settings # # Use 'LocalLib.cfg' in the 'bin' directory to configure non-standard # locations for the 'lib' directory or Perl modules. #

# NOTE: If your server is running Microsoft Windows, paths should # normally be written as "c:/foo" not "c:\foo" (which doesn't do what # you may think it does). You can use '\' without problems inside # single quotes, e.g. 'c:\foo'.

# If LocalSite.cfg is used (and it should be), then all the # following paths muct be defined.

# URL for TWiki host e.g. http://myhost.com:123 $cfg{DefaultUrlHost} = 'http://nwswww.wh.lucent.com';

# cgi-bin URL path for TWiki e.g. /twiki/bin $cfg{ScriptUrlPath} = '/~nsgtools/twiki2/bin';

# Attachments URL path e.g. /twiki/pub $cfg{PubUrlPath} = '/~nsgtools/twiki2/pub';

# Attachments store file path (not URL), must match /twiki/pub e.g. # /usr/local/twiki/pub $cfg{PubDir} = '/home/nsgtools/public_html/twiki2/pub';

# SECURITY NOTE: Directories twiki/data , twiki/templates and all their # subdirectories should be set so that they are not visible through # URLs. (Alternatively, move the directories to a place where they are # not visible, and set the paths here as appropriate)

# Template directory e.g. /usr/local/twiki/templates $cfg{TemplateDir} = '/home/nsgtools/public_html/twiki2/templates';

# Topic files store (file path not URL) e.g. /usr/local/twiki/data # TWiki will use this path to base other defaults, such as the location # of password files. $cfg{DataDir} = '/home/nsgtools/public_html/twiki2/data';

# TWiki.cfg will use this path to default where to put log files, unless # you override individual paths here. $cfg{LogDir} = $cfg{DataDir};

1;

/home/nsgtools/public_html/twiki2/lib

In addition, I created a single .htaccess under bin that includes the following line:

SetHandler cgi-script

Does anyone know why I might be seeing this errors & warnings?

In particular, why do I see syntax errors identified in "out-of-the-box"/unaltered TWiki.pm Perl Module?

Thanks in advance for any help you can provide.

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 2.8
Web server: Apache/1.3.26
Perl version: 5.005_03 built for sun4-solaris
Client OS: MS Windows 2000 Professional
Web Browser: MS IE 6.0.2800.1106CO
Categories: Installation, Htaccess, Permissions

-- TWikiGuest - 07 Apr 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

The problem was a bad version of perl at /usr/bin on all our Sun distributed Solaris. Once I replaced the script references to a version that we maintain at /opt/exp/bin/perl, everything works as expected and the configure and testenv errors are not reported.

nsgtools: uname -a SunOS whccsc 5.8 Generic_117350-30 sun4u sparc SUNW,Sun-Fire-V490

nsgtools: /usr/bin/perl -version

This is perl, version 5.005_03 built for sun4-solaris

Copyright 1987-1999, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page.

nsgtools: /opt/exp/bin/perl -version

This is perl, v5.6.1 built for sun4-solaris

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page.

-- TWikiGuest - 08 Apr 2006

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-04-08 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.