Handbuch:$IP

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$IP and the translation is 50% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎dansk • ‎español • ‎français • ‎italiano • ‎lietuvių • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎български • ‎русский • ‎العربية • ‎سنڌي • ‎فارسی • ‎ไทย • ‎中文 • ‎日本語
Pfade: $IP
Der vollständige Pfad zum Installationsverzeichnis.
Eingeführt in Version:pre 1.1.0
Entfernt in Version:weiterhin vorhanden
Erlaubte Werte:(Zeichenkette des vollen Dateipfads.)
Standardwert:The MW_INSTALL_PATH environment variable, or if not set, the current working directory
Andere Einstellungen: Alphabetisch | Nach Funktion

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.

Details

Die Bezeichnung „IP“ steht für include path. Die Variable beinhaltet den lokalen Dateipfad zur Basisinstallation deines Wikis. Stell sicher, dass du den vollständigen und korrekten Pfad einträgst. Füge keinen abschließenden Schrägstrich am Ende des Pfads an.

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.

Unlike other variables, the default is set in WebStart.php instead of in 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).