WARNING LocalSite.cfg could not be found (This is normal for a new installation)
This Foswiki is running using a bootstrap configuration worked out by detecting the layout of the installation. To complete the bootstrap process you should either:
  • Restore the missing LocalSite.cfg from a backup, or
  • Complete the new Foswiki installation:

You have been logged in as a temporary administrator. Any requests made to this Foswiki will be treated as requests made by an administrator with full rights Your temporary administrator rights will "stick" until you've logged out from this session.

PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::Configure
Child packages:

    SMELL / FIX / TODO count: 6

    internal package Foswiki::Configure::Bootstrap

    Inspects the system and makes guesses for the settings required for an operational Foswiki.

    workOutOS - Establish the OS and DetailsOS

    These settings are saved into the configuration. However this method is made public so that they can be set when missing from older configurations.

    SMELL: the perlvar doc for $^O says "The value is identical
    SMELL: is it really worth continuing if we still can't

    StaticMethod setBootstrap()

    This routine is called to initialize the bootstrap process. It sets the list of configuration parameters that will need to be set and "protected" during bootstrap.

    If any keys will be set during bootstrap / initial creation of LocalSite.cfg, they should be added here so that they are preserved when the %Foswiki::cfg hash is wiped and re-initialized from the Foswiki spec.

    StaticMethod bootstrapConfig()

    This routine is called from Foswiki.pm BEGIN block to discover the mandatory settings for operation when a LocalSite.cfg could not be found.

    SMELL: have to keep {Engine} as this is defined by the

    StaticMethod _bootstrapSiteSettings()

    Called by bootstrapConfig. This handles the {Site} settings.

    StaticMethod _bootstrapStoreSettings()

    Called by bootstrapConfig. This handles the store specific settings. This in turn tests each Store Contib to determine if it's capable of bootstrapping.

    SMELL: The fork to `grep goes into a loop in the unit tests
    SMELL: Really this should be done per web, both in data and pub.

    StaticMethod bootstrapWebSettings($script)

    Called by bootstrapConfig. This handles the web environment specific settings only:

    • {DefaultUrlHost}
    • {ForceDefaultUrlHost}
    • {ScriptUrlPath}
    • {ScriptUrlPaths}{view}
    • {PubUrlPath}

    || '';SMELL Sometimes PATH_INFO appears to be undefined.
    Topic revision: r1 - 15 Mar 2026, UnknownUser
    This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
    Ideas, requests, problems regarding Foswiki? Send feedback