This question about Installation of Foswiki: Answered

Insecure directory in $ENV{PATH}

I installed Fowiki 1.1.3 under Solaris (Solaris 2.10 (sun4-solaris-64int)).

I installed a private Perl modules installation, this worked fine and configure did find all the modules.

After saving (1st time) my path settings I get the following error:

Status: 500 Content-type: text/html
Software error:

Insecure directory in $ENV{PATH} while running with -T switch at .../Checker.pm line 368.

I tried to setup the Safeenv variable but this did not change the behavior. What else can I do to get the system running again?

-- SteveBa - 07 Jul 2011

Is there a full backtrace available? We recently fixed Tasks.Item10896 which was another insecure dependency issue, but not the same one. See distro:84bf01df0e03

What version of perl have you got?

-- PaulHarvey - 07 Jul 2011


How can i produce a full backtrace? Please tell me.

Is there a possibility to debug variable $ENV{PATH} which Perl sees or is this just the PATH variable from Solaris?

In the latter case it is:
/usr/bin:/bin:/usr/sbin:/sbin:/opt/bin 

My Perlversion is 5.008004 (solaris).

Furthermore, the wikipage "Webhome" etc. is working...it seems the problems is only affecting "configure".

-- SteveBa - 08 Jul 2011

5.8.4 is very old, and I'm pretty sure there are differences in tainting behaviour between 5.8.4 and 5.10. We do also try to keep 5.8.8 working... I'm afraid this problem is beyond me: pinning down tainted path problems can be interesting.

Backtrace might be in your foswiki error log working/logs/error.log and/or your webserver (apache) error logs.

You could also try to run configure on the command line; the backtrace should be shown there. On linux I'd usually do cd /path/to/foswiki/bin and then sudo -u www-data ./configure or possibly sudo -u www-data perl -wT -I . ./configure.

You can also try to enable FOSWIKI_ASSERTS, check out Development/UnitTests#Asserts which speaks of creating a bin/LocalLib.cfg (copy from bin/LocalLib.cfg.txt which contains some lines you can un-comment.

There's also Carp's fatalsToBrowser thing but I can't remember how to work that right this minute... hoping somebody else around here can respond.

-- PaulHarvey - 08 Jul 2011

Ok... So yes, 5.8.4 is very old, and I'm surprised it gives this taint error. Setting SafeEnvPath should in theory fix this, but if you're saying it doesn't, then maybe it's because it's caught too early?

I mean, Foswiki/Configure/Checkers/BasicSanity.pm takes care of cleaning the PATH so that there shouldn't be any taint issue. Maybe you're hitting it before that?

And in configure we use CGI::Carp with fatalsToBrowser, so in theory, any fatal issue should dump a full trace. I'm surprised you get just one line. Normally only checks for fgrep and egrep should call the line which made it crash, but I do not understand how these checkers can be called AFTER BasicSanity.

So Steve, please give us more information if you can, or tell us that there is nothing more in the logs, and we'll provide you with some code to help us debug this.

-- OlivierRaginel - 08 Jul 2011

Also, I'm curious how you obtained the apparent $ENV{PATH}. Is this the path a perl process will see when executed from the webserver?

-- PaulHarvey - 09 Jul 2011

Unfortunately I cannot update perl to a recent version. I have only user priviliges on this server.

I tried to call ./configure from the shell, the output is as follows:
./configure
Content-Type: text/html; charset=ISO-8859-1
<h1>Software error:</h1><pre>Use of uninitialized value in pattern match (m//) at /.../Foswiki-1.1.3/lib/Foswiki/Configure/Checkers/ScriptSuffix.pm line 14.</pre><p>For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
</p>[Tue Jul 12 11:40:47 2011] configure: Use of uninitialized value in pattern match (m//) at /.../Foswiki-1.1.3/lib/Foswiki/Configure/Checkers/ScriptSuffix.pm line 14.

This seems weird to me. I did not configure the variable ScriptSuffix and I think it is not needed. I tried to debug it by setting ScriptSuffix to the corresponding value 'pm'. But this did not change anything. Maybe something else is not intialised there?!?

Next, I activated FOSWIKI_ASSERTS and I also tried the 'soft' option of asserts. I did not get any further output than the one of my first posting.

The logs did not show any further output as well.

-- SteveBa - 12 Jul 2011

Hi Steve,

I think to help you resolve this problem, you need to possibly share your LocalSite.cfg with us. My guess is that configure has calculated an incorrect value, and hopefully we can fix LocalSite.cfg manually to try to get it working again.

Can you make a copy, and remove any detail (like the $Foswiki::cfg{Password} entry) which you wouldn't want to share publicly.

You may also wish to anonymise path names in case they expose more about your installation than you'd like.

Alternatively you could GetLiveSupport where we might be able to help you interactively.

-- PaulHarvey - 14 Jul 2011

Please find below my LocalSite.cfg, I used '...' to hide some information.

# Local site settings for Foswiki. This file is managed by the 'configure'
# CGI script, though you can also make (careful!) manual changes with a
# text editor.  See the Foswiki.spec file in this directory for documentation
# Extensions are documented in the Config.spec file in the Plugins/<extension>
# or Contrib/<extension> directories
$Foswiki::cfg{DefaultUrlHost} = '...';
$Foswiki::cfg{PermittedRedirectHostUrls} = '';
$Foswiki::cfg{ScriptUrlPath} = '/.../cgi-bin/Foswiki-1.1.3/bin';
$Foswiki::cfg{ScriptUrlPaths}{view} = '$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}';
$Foswiki::cfg{ScriptDir} = '/.../cgi-bin/Foswiki-1.1.3/bin';
$Foswiki::cfg{PubUrlPath} = '/Foswiki-1.1.3/pub';
$Foswiki::cfg{PathCheckLimit} = 5000;
$Foswiki::cfg{PubDir} = '/.../websource/Foswiki-1.1.3/pub';
$Foswiki::cfg{DataDir} = '/.../websource/Foswiki-1.1.3/data';
$Foswiki::cfg{ToolsDir} = '/.../cgi-bin/Foswiki-1.1.3/tools';
$Foswiki::cfg{TemplateDir} = '/.../websource/Foswiki-1.1.3/templates';
$Foswiki::cfg{LocalesDir} = '/.../websource/Foswiki-1.1.3/locale';
$Foswiki::cfg{WorkingDir} = '/.../websource/Foswiki-1.1.3/working';
$Foswiki::cfg{ScriptSuffix} = '';
$Foswiki::cfg{OS} = 'UNIX';
$Foswiki::cfg{DetailedOS} = 'solaris';
$Foswiki::cfg{UseClientSessions} = 1;
$Foswiki::cfg{Sessions}{ExpireAfter} = 21600;
$Foswiki::cfg{Sessions}{ExpireCookiesAfter} = 0;
$Foswiki::cfg{Sessions}{IDsInURLs} = 0;
$Foswiki::cfg{Sessions}{UseIPMatching} = 0;
$Foswiki::cfg{Sessions}{MapIP2SID} = 0;
$Foswiki::cfg{Sessions}{CookieRealm} = '';
$Foswiki::cfg{Validation}{Method} = 'strikeone';
$Foswiki::cfg{Validation}{ValidForTime} = 3600;
$Foswiki::cfg{Validation}{MaxKeysPerSession} = 1000;
$Foswiki::cfg{Validation}{ExpireKeyOnUse} = 1;
$Foswiki::cfg{LoginManager} = 'Foswiki::LoginManager::TemplateLogin';
$Foswiki::cfg{AuthScripts} = 'attach,edit,manage,rename,save,upload,viewauth,rdiffauth,rest';
$Foswiki::cfg{TemplateLogin}{PreventBrowserRememberingPassword} = 0;
$Foswiki::cfg{LoginNameFilterIn} = '^[^\\s\\*?~^\\$@%`"\'&;|<>\\x00-\\x1f]+$';
$Foswiki::cfg{DefaultUserLogin} = 'guest';
$Foswiki::cfg{DefaultUserWikiName} = 'WikiGuest';
$Foswiki::cfg{AdminUserLogin} = 'admin';
$Foswiki::cfg{AdminUserWikiName} = 'AdminUser';
$Foswiki::cfg{SuperAdminGroup} = 'AdminGroup';
$Foswiki::cfg{UsersTopicName} = 'WikiUsers';
$Foswiki::cfg{AuthRealm} = 'Enter your WikiName. (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.';
$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::TopicUserMapping';
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::HtPasswdUser';
$Foswiki::cfg{MinPasswordLength} = 7;
$Foswiki::cfg{Htpasswd}{FileName} = '$Foswiki::cfg{DataDir}/.htpasswd';
$Foswiki::cfg{Htpasswd}{Encoding} = 'crypt';
$Foswiki::cfg{Register}{AllowLoginName} = 0;
$Foswiki::cfg{Register}{EnableNewUserRegistration} = 1;
$Foswiki::cfg{Register}{NeedVerification} = 0;
$Foswiki::cfg{Register}{DisablePasswordConfirmation} = 0;
$Foswiki::cfg{Register}{HidePasswd} = 1;
$Foswiki::cfg{Register}{RegistrationAgentWikiName} = 'RegistrationAgent';
$Foswiki::cfg{Password} = '...';
$Foswiki::cfg{SafeEnvPath} = 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/FAU/bin:/usr/sfw/bin:/opt/csw/bin:/opt/FAU/httpd-2.2.17/bin:/opt/FAU/httpd-2.2.17/sbin:/local/bin:/usr/ucb:/usr/local/bin:/.../websource/Foswiki-1.1.3/bin';
$Foswiki::cfg{AccessibleCFG} = [
          '{ScriptSuffix}',
          '{LoginManager}',
          '{AuthScripts}',
          '{LoginNameFilterIn}',
          '{AdminUserLogin}',
          '{AdminUserWikiName}',
          '{SuperAdminGroup}',
          '{UsersTopicName}',
          '{AuthRealm}',
          '{MinPasswordLength}',
          '{Register}{AllowLoginName}',
          '{Register}{EnableNewUserRegistration}',
          '{Register}{NeedVerification}',
          '{Register}{RegistrationAgentWikiName}',
          '{AllowInlineScript}',
          '{DenyDotDotInclude}',
          '{UploadFilter}',
          '{NameFilter}',
          '{AccessibleCFG}',
          '{AntiSpam}{EmailPadding}',
          '{AntiSpam}{HideUserDetails}',
          '{AntiSpam}{RobotsAreWelcome}',
          '{Stats}{TopViews}',
          '{Stats}{TopContrib}',
          '{Stats}{TopicName}',
          '{UserInterfaceInternationalisation}',
          '{UseLocale}',
          '{Site}{Locale}',
          '{Site}{CharSet}',
          '{DisplayTimeValues}',
          '{DefaultDateFormat}',
          '{Site}{LocaleRegexes}',
          '{UpperNational}',
          '{LowerNational}',
          '{PluralToSingular}',
          '{EnableHierarchicalWebs}',
          '{WebMasterEmail}',
          '{WebMasterName}',
          '{NotifyTopicName}',
          '{SystemWebName}',
          '{TrashWebName}',
          '{SitePrefsTopicName}',
          '{LocalSitePreferences}',
          '{HomeTopicName}',
          '{WebPrefsTopicName}',
          '{UsersWebName}',
          '{TemplatePath}',
          '{LinkProtocolPattern}',
          '{NumberOfRevisions}',
          '{MaxRevisionsInADiff}',
          '{ReplaceIfEditedAgainWithin}',
          '{LeaseLength}',
          '{LeaseLengthLessForceful}',
          '{Plugins}{WebSearchPath}',
          '{PluginsOrder}',
          '{Cache}{Enabled}',
          '{Validation}{Method}',
          '{Register}{DisablePasswordConfirmation}'
        ];
$Foswiki::cfg{INCLUDE}{AllowURLs} = 0;
$Foswiki::cfg{AllowInlineScript} = 1;
$Foswiki::cfg{RenderLoggedInButUnknownUsers} = 0;
$Foswiki::cfg{DenyDotDotInclude} = 1;
$Foswiki::cfg{UploadFilter} = '^(\\.htaccess|.*\\.(?i)(?:php[0-9s]?(\\..*)?|[sp]htm[l]?(\\..*)?|pl|py|cgi))$';
$Foswiki::cfg{NameFilter} = '[\\s\\*?~^\\$@%`"\'&;|<>\\[\\]#\\x00-\\x1f]';
$Foswiki::cfg{ForceUnsafeRegexes} = 0;
$Foswiki::cfg{GetScriptUrlFromCgi} = 0;
$Foswiki::cfg{DrainStdin} = 0;
$Foswiki::cfg{RemovePortNumber} = 0;
$Foswiki::cfg{AllowRedirectUrl} = 0;
$Foswiki::cfg{UsePathForRedirectCache} = 0;
$Foswiki::cfg{AccessibleENV} = '^(HTTP_\\w+|REMOTE_\\w+|SERVER_\\w+|REQUEST_\\w+|MOD_PERL|FOSWIKI_ACTION|PATH_INFO)$';
$Foswiki::cfg{AntiSpam}{EmailPadding} = '';
$Foswiki::cfg{AntiSpam}{HideUserDetails} = 1;
$Foswiki::cfg{AntiSpam}{RobotsAreWelcome} = 1;
$Foswiki::cfg{Log}{Dir} = '$Foswiki::cfg{WorkingDir}/logs';
$Foswiki::cfg{Log}{Implementation} = 'Foswiki::Logger::PlainFile';
$Foswiki::cfg{Log}{Action} = {
          'compare' => 1,
          'search' => 1,
          'rest' => 1,
          'edit' => 1,
          'viewfile' => 1,
          'register' => 1,
          'rename' => 1,
          'save' => 1,
          'changes' => 1,
          'view' => 1,
          'upload' => 1,
          'rdiff' => 1,
          'attach' => 1
        };
$Foswiki::cfg{Stats}{TopViews} = 10;
$Foswiki::cfg{Stats}{TopContrib} = 10;
$Foswiki::cfg{Stats}{TopicName} = 'WebStatistics';
$Foswiki::cfg{UserInterfaceInternationalisation} = 0;
$Foswiki::cfg{Languages}{cs}{Enabled} = 1;
$Foswiki::cfg{Languages}{da}{Enabled} = 1;
$Foswiki::cfg{Languages}{nl}{Enabled} = 1;
$Foswiki::cfg{Languages}{fi}{Enabled} = 1;
$Foswiki::cfg{Languages}{fr}{Enabled} = 1;
$Foswiki::cfg{Languages}{de}{Enabled} = 1;
$Foswiki::cfg{Languages}{it}{Enabled} = 1;
$Foswiki::cfg{Languages}{ja}{Enabled} = 1;
$Foswiki::cfg{Languages}{ko}{Enabled} = 1;
$Foswiki::cfg{Languages}{no}{Enabled} = 1;
$Foswiki::cfg{Languages}{pl}{Enabled} = 1;
$Foswiki::cfg{Languages}{pt}{Enabled} = 1;
$Foswiki::cfg{Languages}{'pt-br'}{Enabled} = 1;
$Foswiki::cfg{Languages}{ru}{Enabled} = 1;
$Foswiki::cfg{Languages}{es}{Enabled} = 1;
$Foswiki::cfg{Languages}{sv}{Enabled} = 1;
$Foswiki::cfg{Languages}{tr}{Enabled} = 1;
$Foswiki::cfg{Languages}{'zh-cn'}{Enabled} = 1;
$Foswiki::cfg{Languages}{'zh-tw'}{Enabled} = 1;
$Foswiki::cfg{UseLocale} = 0;
$Foswiki::cfg{Site}{Locale} = 'en_US.ISO-8859-1';
$Foswiki::cfg{DisplayTimeValues} = 'gmtime';
$Foswiki::cfg{DefaultDateFormat} = '$day $month $year';
$Foswiki::cfg{Site}{LocaleRegexes} = 1;
$Foswiki::cfg{UpperNational} = '';
$Foswiki::cfg{LowerNational} = '';
$Foswiki::cfg{PluralToSingular} = 1;
$Foswiki::cfg{Store}{Implementation} = 'Foswiki::Store::RcsWrap';
$Foswiki::cfg{EnableHierarchicalWebs} = 1;
$Foswiki::cfg{Store}{RememberChangesFor} = 2678400;
$Foswiki::cfg{Store}{SearchAlgorithm} = 'Foswiki::Store::SearchAlgorithms::Forking';
$Foswiki::cfg{Store}{EgrepCmd} = '/bin/grep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$Foswiki::cfg{Store}{FgrepCmd} = '/bin/grep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$Foswiki::cfg{Store}{QueryAlgorithm} = 'Foswiki::Store::QueryAlgorithms::BruteForce';
$Foswiki::cfg{Store}{PrefsBackend} = 'Foswiki::Prefs::TopicRAM';
$Foswiki::cfg{RCS}{dirPermission} = 493;
$Foswiki::cfg{RCS}{filePermission} = 420;
$Foswiki::cfg{RCS}{AutoAttachPubFiles} = 0;
$Foswiki::cfg{RCS}{ExtOption} = '';
$Foswiki::cfg{RCS}{asciiFileSuffixes} = '\\.(txt|html|xml|pl)$';
$Foswiki::cfg{RCS}{coMustCopy} = 0;
$Foswiki::cfg{RCS}{initBinaryCmd} = '/usr/bin/rcs  -i -t-none -kb %FILENAME|F%';
$Foswiki::cfg{RCS}{initTextCmd} = '/usr/bin/rcs  -i -t-none -ko %FILENAME|F%';
$Foswiki::cfg{RCS}{tmpBinaryCmd} = '/usr/bin/rcs  -kb %FILENAME|F%';
$Foswiki::cfg{RCS}{ciCmd} = '/usr/bin/ci  -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F%';
$Foswiki::cfg{RCS}{ciDateCmd} = '/usr/bin/ci  -m%COMMENT|U% -t-none -d%DATE|D% -u -w%USERNAME|S% %FILENAME|F%';
$Foswiki::cfg{RCS}{coCmd} = '/usr/bin/co  -p%REVISION|N% -ko %FILENAME|F%';
$Foswiki::cfg{RCS}{histCmd} = '/usr/bin/rlog  -h %FILENAME|F%';
$Foswiki::cfg{RCS}{infoCmd} = '/usr/bin/rlog  -r%REVISION|N% %FILENAME|F%';
$Foswiki::cfg{RCS}{rlogDateCmd} = '/usr/bin/rlog  -d%DATE|D% %FILENAME|F%';
$Foswiki::cfg{RCS}{diffCmd} = '/usr/bin/rcsdiff  -q -w -B -r%REVISION1|N% -r%REVISION2|N% -ko --unified=%CONTEXT|N% %FILENAME|F%';
$Foswiki::cfg{RCS}{lockCmd} = '/usr/bin/rcs  -l %FILENAME|F%';
$Foswiki::cfg{RCS}{unlockCmd} = '/usr/bin/rcs  -u %FILENAME|F%';
$Foswiki::cfg{RCS}{breaklockCmd} = '/usr/bin/rcs  -u -M %FILENAME|F%';
$Foswiki::cfg{RCS}{delRevCmd} = '/usr/bin/rcs  -o%REVISION|N% %FILENAME|F%';
$Foswiki::cfg{HttpCompress} = 0;
$Foswiki::cfg{MergeHeadAndScriptZones} = 0;
$Foswiki::cfg{Cache}{Enabled} = 0;
$Foswiki::cfg{Cache}{WebDependencies} = 'WebRss, WebAtom, WebTopicList, WebIndex, WebSearch, WebSearchAdvanced';
$Foswiki::cfg{Cache}{DependencyFilter} = '$Foswiki::cfg{SystemWebName}\\..*|$Foswiki::cfg{TrashWebName}\\..*|.*Template$|TWiki\\..*';
$Foswiki::cfg{CacheManager} = 'Foswiki::Cache::FileCache';
$Foswiki::cfg{MetaCacheManager} = 'Foswiki::Cache::DB_File';
$Foswiki::cfg{Cache}{RootDir} = '$Foswiki::cfg{WorkingDir}/tmp/cache';
$Foswiki::cfg{Cache}{DBFile} = '$Foswiki::cfg{WorkingDir}/tmp/foswiki_db';
$Foswiki::cfg{Cache}{NameSpace} = '$Foswiki::cfg{DefaultUrlHost}';
$Foswiki::cfg{Cache}{MaxSize} = 1000;
$Foswiki::cfg{Cache}{Servers} = '127.0.0.1:11211';
$Foswiki::cfg{EnableEmail} = 1;
$Foswiki::cfg{WebMasterEmail} = '';
$Foswiki::cfg{WebMasterName} = 'Wiki Administrator';
$Foswiki::cfg{MailProgram} = '/usr/sbin/sendmail -t -oi -oeq';
$Foswiki::cfg{SMTP}{MAILHOST} = '';
$Foswiki::cfg{SMTP}{SENDERHOST} = '';
$Foswiki::cfg{SMTP}{Username} = '';
$Foswiki::cfg{SMTP}{Password} = '';
$Foswiki::cfg{PROXY}{HOST} = '';
$Foswiki::cfg{PROXY}{PORT} = '';
$Foswiki::cfg{RemoveImgInMailnotify} = 1;
$Foswiki::cfg{NotifyTopicName} = 'WebNotify';
$Foswiki::cfg{SMTP}{Debug} = 0;
$Foswiki::cfg{SystemWebName} = 'System';
$Foswiki::cfg{TrashWebName} = 'Trash';
$Foswiki::cfg{SitePrefsTopicName} = 'DefaultPreferences';
$Foswiki::cfg{LocalSitePreferences} = '$Foswiki::cfg{UsersWebName}.SitePreferences';
$Foswiki::cfg{HomeTopicName} = 'WebHome';
$Foswiki::cfg{WebPrefsTopicName} = 'WebPreferences';
$Foswiki::cfg{UsersWebName} = 'Main';
$Foswiki::cfg{TemplatePath} = '$Foswiki::cfg{TemplateDir}/$web/$name.$skin.tmpl, $Foswiki::cfg{TemplateDir}/$name.$skin.tmpl, $web.$skinSkin$nameTemplate, $Foswiki::cfg{SystemWebName}.$skinSkin$nameTemplate, $Foswiki::cfg{TemplateDir}/$web/$name.tmpl, $Foswiki::cfg{TemplateDir}/$name.tmpl, $web.$nameTemplate, $Foswiki::cfg{SystemWebName}.$nameTemplate';
$Foswiki::cfg{LinkProtocolPattern} = '(file|ftp|gopher|https|http|irc|mailto|news|nntp|telnet)';
$Foswiki::cfg{RequireCompatibleAnchors} = 0;
$Foswiki::cfg{NumberOfRevisions} = 4;
$Foswiki::cfg{MaxRevisionsInADiff} = 25;
$Foswiki::cfg{ReplaceIfEditedAgainWithin} = 3600;
$Foswiki::cfg{LeaseLength} = 3600;
$Foswiki::cfg{LeaseLengthLessForceful} = 3600;
$Foswiki::cfg{MimeTypesFileName} = '$Foswiki::cfg{DataDir}/mime.types';
$Foswiki::cfg{WarningsAreErrors} = 0;
$Foswiki::cfg{Operators}{Query} = [
          'Foswiki::Query::OP_match',
          'Foswiki::Query::OP_and',
          'Foswiki::Query::OP_eq',
          'Foswiki::Query::OP_lc',
          'Foswiki::Query::OP_lte',
          'Foswiki::Query::OP_not',
          'Foswiki::Query::OP_ref',
          'Foswiki::Query::OP_d2n',
          'Foswiki::Query::OP_gte',
          'Foswiki::Query::OP_length',
          'Foswiki::Query::OP_lt',
          'Foswiki::Query::OP_ob',
          'Foswiki::Query::OP_uc',
          'Foswiki::Query::OP_dot',
          'Foswiki::Query::OP_gt',
          'Foswiki::Query::OP_like',
          'Foswiki::Query::OP_ne',
          'Foswiki::Query::OP_or',
          'Foswiki::Query::OP_where'
        ];
$Foswiki::cfg{Operators}{If} = [
          'Foswiki::If::OP_allows',
          'Foswiki::If::OP_defined',
          'Foswiki::If::OP_isempty',
          'Foswiki::If::OP_ingroup',
          'Foswiki::If::OP_isweb',
          'Foswiki::If::OP_context',
          'Foswiki::If::OP_dollar',
          'Foswiki::If::OP_istopic'
        ];
$Foswiki::cfg{ExtensionsRepositories} = 'Foswiki.org=(http://foswiki.org/Extensions/,http://foswiki.org/pub/Extensions/)';
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Module} = 'Foswiki::Plugins::AutoViewTemplatePlugin';
$Foswiki::cfg{Plugins}{CommentPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{CommentPlugin}{Module} = 'Foswiki::Plugins::CommentPlugin';
$Foswiki::cfg{Plugins}{CompareRevisionsAddonPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{CompareRevisionsAddonPlugin}{Module} = 'Foswiki::Plugins::CompareRevisionsAddonPlugin';
$Foswiki::cfg{Plugins}{EditTablePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{EditTablePlugin}{Module} = 'Foswiki::Plugins::EditTablePlugin';
$Foswiki::cfg{Plugins}{EmptyPlugin}{Module} = 'Foswiki::Plugins::EmptyPlugin';
$Foswiki::cfg{Plugins}{HistoryPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{HistoryPlugin}{Module} = 'Foswiki::Plugins::HistoryPlugin';
$Foswiki::cfg{Plugins}{InterwikiPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{InterwikiPlugin}{Module} = 'Foswiki::Plugins::InterwikiPlugin';
$Foswiki::cfg{Plugins}{JQueryPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{JQueryPlugin}{Module} = 'Foswiki::Plugins::JQueryPlugin';
$Foswiki::cfg{Plugins}{MailerContribPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{MailerContribPlugin}{Module} = 'Foswiki::Plugins::MailerContribPlugin';
$Foswiki::cfg{Plugins}{PreferencesPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{PreferencesPlugin}{Module} = 'Foswiki::Plugins::PreferencesPlugin';
$Foswiki::cfg{Plugins}{RenderListPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{RenderListPlugin}{Module} = 'Foswiki::Plugins::RenderListPlugin';
$Foswiki::cfg{Plugins}{SlideShowPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SlideShowPlugin}{Module} = 'Foswiki::Plugins::SlideShowPlugin';
$Foswiki::cfg{Plugins}{SmiliesPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SmiliesPlugin}{Module} = 'Foswiki::Plugins::SmiliesPlugin';
$Foswiki::cfg{Plugins}{SpreadSheetPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SpreadSheetPlugin}{Module} = 'Foswiki::Plugins::SpreadSheetPlugin';
$Foswiki::cfg{Plugins}{TablePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TablePlugin}{Module} = 'Foswiki::Plugins::TablePlugin';
$Foswiki::cfg{Plugins}{TinyMCEPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TinyMCEPlugin}{Module} = 'Foswiki::Plugins::TinyMCEPlugin';
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{Module} = 'Foswiki::Plugins::TWikiCompatibilityPlugin';
$Foswiki::cfg{Plugins}{TwistyPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TwistyPlugin}{Module} = 'Foswiki::Plugins::TwistyPlugin';
$Foswiki::cfg{Plugins}{WysiwygPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{WysiwygPlugin}{Module} = 'Foswiki::Plugins::WysiwygPlugin';
$Foswiki::cfg{PluginsOrder} = 'TWikiCompatibilityPlugin,SpreadSheetPlugin';
$Foswiki::cfg{Plugins}{WebSearchPath} = '$Foswiki::cfg{SystemWebName},TWiki';
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Debug} = 0;
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Override} = 0;
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Mode} = 'exist';
$Foswiki::cfg{JQueryPlugin}{Debug} = 0;
$Foswiki::cfg{JQueryPlugin}{MemoryCache} = 1;
$Foswiki::cfg{JQueryPlugin}{IconSearchPath} = 'FamFamFamSilkIcons, FamFamFamSilkCompanion1Icons, FamFamFamFlagIcons, FamFamFamMiniIcons, FamFamFamMintIcons';
$Foswiki::cfg{JQueryPlugin}{NoConflict} = 0;
$Foswiki::cfg{JQueryPlugin}{DefaultPlugins} = '';
$Foswiki::cfg{JQueryPlugin}{JQueryVersion} = 'jquery-1.4.3';
$Foswiki::cfg{JQueryPlugin}{JQueryTheme} = '';
$Foswiki::cfg{JQueryPlugin}{Plugins}{Autocomplete}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Bgiframe}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Button}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{BlockUI}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Chili}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Corner}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Cookie}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Cycle}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Debug}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Easing}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Farbtastic}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Focus}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Form}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Foswiki}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{FluidFont}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Gradient}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{HoverIntent}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{InnerFade}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{LiveQuery}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{LocalScroll}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{MaskedInput}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Masonry}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Media}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Metadata}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{PNotify}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{PopUpWindow}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{QueryObject}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Rating}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{ScrollTo}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{SerialScroll}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Shake}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{ShrinkUrls}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{SimpleModal}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Slimbox}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Superfish}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Supersubs}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Tabpane}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{TextboxList}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Themeswitcher}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Tooltip}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Treeview}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{UI}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Validate}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{WikiWord}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TablePlugin}{DefaultAttributes} = 'tableborder="1" valign="top" headercolor="#000000" headerbg="#d6d3cf" headerbgsorted="#c4c1ba" databg="#ffffff,#f7f7f6" databgsorted="#f7f7f6,#f0f0ee" tablerules="rows" headerrules="cols"';
$Foswiki::cfg{Plugins}{TablePlugin}{Debug} = 0;
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{TWikiWebTopicNameConversion} = {
          'TWikiFAQ' => 'FrequentlyAskedQuestions',
          'TWikiCss' => 'CascadingStyleSheets',
          'TWikiGlossary' => 'GlossaryOfTerms',
          'TWikiLogos' => 'ProjectLogos',
          'TWikiRegistration' => 'UserRegistration',
          'TWikiReleaseNotes04x01' => '_remove_',
          'TWikiSkinBrowser' => 'SkinBrowser',
          'TWikiContributor' => 'ProjectContributor',
          'TWikiSkins' => 'Skins',
          'TWikiReleaseNotes04x00' => '_remove_',
          'TWikiUserMappingContrib' => 'TopicUserMappingContrib',
          'TWikiDownload' => 'DownloadSources',
          'TWikiMetaData' => 'MetaData',
          'TWikiUserAuthentication' => 'UserAuthentication',
          'TWikiPreferences' => 'DefaultPreferences',
          'TWikiScripts' => 'CommandAndCGIScripts',
          'TWikiSiteTools' => 'SiteTools',
          'TWikiReleaseNotes04x02' => 'ReleaseNotes01x00',
          'ATasteOfTWiki' => 'BeginnersStartHere',
          'TWikiUpgradeGuide' => 'UpgradeGuide',
          'TWikiContribs' => 'Contribs',
          'TWikiTutorial' => 'TwentyMinuteTutorial',
          'TWikiUsersGuide' => 'UsersGuide',
          'TWikiEditingShorthand' => 'EditingShorthand',
          'TWikiDocumentation' => 'CompleteDocumentation',
          'TWikiRegistrationAgent' => 'RegistrationAgent',
          'TWikiReferenceManual' => 'ReferenceManual',
          'TWikiEnhancementRequests' => 'EnhancementRequests',
          'TWikiSite' => '_remove_',
          'TWikiTopics' => 'TopicsAndWebs',
          'TWikiAccessControl' => 'AccessControl',
          'TWikiJavascripts' => 'JavascriptFiles',
          'TWikiForms' => 'DataForms',
          'TWikiSystemRequirements' => 'SystemRequirements',
          'TWikiFaqTemplate' => 'FaqTemplate',
          'TWikiTemplates' => 'TemplateTopics',
          'TWikiRenderingShortcut' => 'RenderingShortcut',
          'WhatDoesTWikiStandFor' => '_remove_',
          'TWikiVariables' => 'Macros',
          'TWikiPlannedFeatures' => '_remove_',
          'TWikiVariablesQuickStart' => 'MacrosQuickStart',
          'TWikiPlugins' => 'Plugins',
          'TWikiUsersTemplate' => 'UsersTemplate',
          'TWikiShorthand' => 'ShortHand',
          'TWikiHistory' => 'ReleaseHistory',
          'TWikiAddOns' => 'ContributedAddOns',
          'TWikiInstallationGuide' => 'InstallationGuide',
          'TWikiDocGraphics' => 'DocumentGraphics',
          'TWikiWebsTable' => 'WebsTable',
          'TWikiUserSetting' => 'UserSetting'
        };
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{MainWebTopicNameConversion} = {
          'TWikiPreferences' => 'SitePreferences',
          'TWikiGuest' => 'WikiGuest',
          'TWikiRegistrationAgent' => 'RegistrationAgent',
          'TWikiUsers' => 'WikiUsers',
          'TWikiAdminGroup' => 'AdminGroup',
          'TWikiAdminUser' => 'AdminUser',
          'TWikiContributor' => 'ProjectContributor',
          'TWikiGroupTemplate' => 'GroupTemplate',
          'TWikiGroups' => 'WikiGroups'
        };
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{WebSearchPath} = {
          'System' => 'TWiki',
          'TWiki' => 'System'
        };
$Foswiki::cfg{JSCalendarContrib}{style} = 'blue';
$Foswiki::cfg{JSCalendarContrib}{lang} = 'en';
$Foswiki::cfg{JSCalendarContrib}{format} = '%e %b %Y';
$Foswiki::cfg{MailerContrib}{EmailFilterIn} = '';
$Foswiki::cfg{SwitchBoard}{compare} = {
          'function' => 'compare',
          'context' => {
                         'comparing' => 1,
                         'diff' => 1
                       },
          'package' => 'Foswiki::Contrib::CompareRevisionsAddOn::Compare'
        };
$Foswiki::cfg{Languages}{bg}{Enabled} = 1;
1;

-- SteveBa - 14 Jul 2011

Configure is finally back. I debugged the PATH directly from Foswikis perl scripts and redefined the SafeEnvPath accordingly.

The problem was that the PATH perl saw was different from the webusers PATH variable (maybe a solaris problem?), furthermore there were

some path included in the PERL PATH variable that did not exists. After redefining and cleaning SafeEnvPath configure was working again.

Thanks to all supporters!

-- SteveBa - 14 Jul 2011

I had this same problem today installing 1.1.4 under Perl 5.8.8. Foswiki picked up my personal PATH variable and used it as $Foswiki::cfg{SafeEnvPath} (ick! No!).

Changed to
$Foswiki::cfg{SafeEnvPath} = '/usr/local/bin:/usr/bin:/bin:/etc';

-- VickiBrown - 22 Jan 2012

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.1.3
Status Answered
Related Topics Tasks.Item10896
Topic revision: r12 - 22 Jan 2012, VickiBrown
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy