Manual:$wgBaseDirectory

From mediawiki.org
Other languages:
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.