|The full path to the installation directory.
|Introducido en la versión:||pre 1.1.0|
|Eliminado en la versión:||aún se usa|
|Valores permitidos:||(String containing an absolute path.)|
|Valor predeterminado:||The MW_INSTALL_PATH environment variable, or if not set, the current working directory|
|Otros configuración: Alfabéticamente | Por Función|
Manually setting this variable to the absolute path to MediaWiki on disk from LocalSettings.php was necessary in older versions of MediaWiki. However, at least since MediaWiki 1.18, manually defining
$IP in LocalSettings.php is no longer needed. It will default to the current working directory and it can be used without the need to define it manually. If there is an environment variable named MW_INSTALL_PATH defined, its value will be used instead.
IP stands for Install Path. The variable holds the local file path to the base installation of your wiki. If for whatever reason you want to overwrite its default - make sure you refer to the fully qualified file path. Do not include a slash at the end of the path.
In MediaWiki 1.16 and prior, where the DefaultSettings.php file still had to be loaded from inside LocalSettings.php, the directory to load it from was determined by the IP variable.
A diferencia de otras variables, el valor predeterminado se establece en WebStart.php en vez de DefaultSettings.php.
Setting the MW_INSTALL_PATH environmental variable can sometimes be useful when running maintenance scripts that are in non-standard directories. (Maintenance scripts by default use the parent of the current working directory as $IP).