Manual:$wgBaseDirectory/en

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

Automatically set in before loading local settings.