Jump to content

Manual:$wgBaseDirectory

From mediawiki.org
Server URLs and file paths: $wgBaseDirectory
Absolute filesystem path of the root directory of the MediaWiki installation.
Introduced in version:1.38.0 (Gerrit change 757744; git #cf581bb2)
Removed in version:Still in use
Allowed values:Unspecified
Default value:null

Details

[edit]

Absolute filesystem path of the root directory of the MediaWiki installation. The MW_INSTALL_PATH environment variable can be used to set this.

Automatically set in Setup.php before loading local settings.

Warning Warning: Do not modify in settings files! This variable must remain equal to the MW_INSTALL_PATH constant defined in Setup.php.