MediaWiki REL1_35
|
Base installer class. More...
Public Member Functions | |
__construct () | |
Constructor, always call this from child classes. | |
addInstallStep ( $callback, $findStep='BEGINNING') | |
Add an installation step following the given step. | |
dirIsExecutable ( $dir, $url) | |
Checks if scripts located in the given directory can be executed via the given URL. | |
disableLinkPopups () | |
doEnvironmentChecks () | |
Do initial checks of the PHP environment. | |
doEnvironmentPreps () | |
findExtensions ( $directory='extensions') | |
Find extensions or skins in a subdirectory of $IP. | |
generateKeys () | |
Generate $wgSecretKey. | |
getAutoExtensionHookContainer () | |
Get the hook container previously populated by includeExtensions(). | |
getCompiledDBs () | |
Get a list of DBs supported by current PHP setup. | |
getDBInstaller ( $type=false) | |
Get an instance of DatabaseInstaller for the specified DB type. | |
getDefaultSkin (array $skinNames) | |
Returns a default value to be used for $wgDefaultSkin: normally the one set in DefaultSettings, but will fall back to another if the default skin is missing and some other one is present instead. | |
getFakePassword ( $realPassword) | |
Get a fake password for sending back to the user in HTML. | |
getParserOptions () | |
getVar ( $name, $default=null) | |
Get an MW configuration variable, or internal installer configuration variable. | |
parse ( $text, $lineStart=false) | |
Convert wikitext $text to HTML. | |
performInstallation ( $startCB, $endCB) | |
Actually perform the installation. | |
populateSiteStats (DatabaseInstaller $installer) | |
Install step which adds a row to the site_stats table with appropriate initial values. | |
resetMediaWikiServices (Config $installerConfig=null, $serviceOverrides=[]) | |
Reset the global service container and associated global state to accommodate different stages of the installation. | |
restoreLinkPopups () | |
restoreServices () | |
Restore services that have been redefined in the early stage of installation. | |
setParserLanguage ( $lang) | |
ParserOptions are constructed before we determined the language, so fix it. | |
setPassword ( $name, $value) | |
Set a variable which stores a password, except if the new value is a fake password in which case leave it as it is. | |
setVar ( $name, $value) | |
Set a MW configuration variable, or internal installer configuration variable. | |
showError ( $msg,... $params) | |
Same as showMessage(), but for displaying errors. | |
showMessage ( $msg,... $params) | |
UI interface for displaying a short message The parameters are like parameters to wfMessage(). | |
showStatusMessage (Status $status) | |
Show a message to the installing user by using a Status object. | |
Static Public Member Functions | |
static | apacheModulePresent ( $moduleName) |
Checks for presence of an Apache module. | |
static | getDBInstallerClass ( $type) |
Get the DatabaseInstaller class name for this type. | |
static | getDBTypes () |
Get a list of known DB types. | |
static | getExistingLocalSettings () |
Determine if LocalSettings.php exists. | |
static | getInstallerConfig (Config $baseConfig) |
Constructs a Config object that contains configuration settings that should be overwritten for the installation process. | |
static | maybeGetWebserverPrimaryGroup () |
On POSIX systems return the primary group of the webserver we're running under. | |
static | overrideConfig () |
Override the necessary bits of the config to run an installation. | |
Public Attributes | |
array | $licenses |
License types. | |
array | $rightsProfiles |
User rights profiles. | |
const | MINIMUM_PCRE_VERSION = '7.2' |
The oldest version of PCRE we can support. | |
Protected Member Functions | |
createMainpage (DatabaseInstaller $installer) | |
Insert Main Page with default content. | |
createSysop () | |
Create the first user account, grant it sysop, bureaucrat and interface-admin rights. | |
disableTimeLimit () | |
Disable the time limit for execution. | |
doGenerateKeys ( $keys) | |
Generate a secret value for variables using a secure generator. | |
envCheck64Bit () | |
Checks if we're running on 64 bit or not. | |
envCheckCache () | |
Environment check for compiled object cache types. | |
envCheckDB () | |
Environment check for DB types. | |
envCheckDiff3 () | |
Search for GNU diff3. | |
envCheckGit () | |
Search for git. | |
envCheckGraphics () | |
Environment check for ImageMagick and GD. | |
envCheckLibicu () | |
Check the libicu version. | |
envCheckMemory () | |
Environment check for available memory. | |
envCheckModSecurity () | |
Scare user to death if they have mod_security or mod_security2. | |
envCheckPath () | |
Environment check to inform user which paths we've assumed. | |
envCheckPCRE () | |
Environment check for the PCRE module. | |
envCheckServer () | |
Environment check to inform user which server we've assumed. | |
envCheckShellLocale () | |
Environment check for preferred locale in shell. | |
envCheckSuhosinMaxValueLength () | |
Checks if suhosin.get.max_value_length is set, and if so generate a warning because it is incompatible with ResourceLoader. | |
envCheckUploadsDirectory () | |
Environment check for the permissions of the uploads directory. | |
envGetDefaultServer () | |
Helper function to be called from envPrepServer() | |
envPrepPath () | |
Environment prep for setting $IP and $wgScriptPath. | |
envPrepServer () | |
Environment prep for the server hostname. | |
findExtensionsByType ( $type='extension', $directory='extensions') | |
Find extensions or skins, and return an array containing the value for 'Name' for each found extension. | |
getAutoExtensionData () | |
Auto-detect extensions with an extension.json file. | |
getAutoExtensionLegacyHooks () | |
Auto-detect extensions with an old style .php registration file, load the extensions, and return the merged $wgHooks array. | |
getDocUrl ( $page) | |
Overridden by WebInstaller to provide lastPage parameters. | |
getExtensionInfo ( $type, $parentRelPath, $name) | |
getInstallSteps (DatabaseInstaller $installer) | |
Get an array of install steps. | |
includeExtensionFiles ( $files) | |
Include the specified extension PHP files. | |
includeExtensions () | |
Installs the auto-detected extensions. | |
Protected Attributes | |
HookContainer null | $autoExtensionHookContainer |
array | $compiledDBs |
List of detected DBs, access using getCompiledDBs(). | |
array | $dbInstallers = [] |
Cached DB installer instances, access using getDBInstaller(). | |
array | $defaultVarNames |
MediaWiki configuration globals that will eventually be passed through to LocalSettings.php. | |
array | $envChecks |
A list of environment check methods called by doEnvironmentChecks(). | |
array | $envPreps |
A list of environment preparation methods called by doEnvironmentPreps(). | |
array | $extraInstallSteps = [] |
Extra steps for installation, for things like DatabaseInstallers to modify. | |
array | $internalDefaults |
Variables that are stored alongside globals, and are used for any configuration of the installation process aside from the MediaWiki configuration. | |
int | $minMemorySize = 50 |
Minimum memory size in MB. | |
array | $objectCaches |
Known object cache types and the functions used to test for their existence. | |
ParserOptions | $parserOptions |
Cached ParserOptions, used by parse(). | |
Title | $parserTitle |
Cached Title, used by parse(). | |
array | $settings |
Static Protected Attributes | |
static array | $dbTypes |
Known database types. | |
Private Member Functions | |
readExtension ( $fullJsonFile, $extDeps=[], $skinDeps=[]) | |
subscribeToMediaWikiAnnounce () | |
Private Attributes | |
array[] | $installSteps = [] |
The actual list of installation steps. | |
const | MEDIAWIKI_ANNOUNCE_URL |
URL to mediawiki-announce list summary page. | |
Base installer class.
This class provides the base for installation and update functionality for both MediaWiki core and extensions.
Definition at line 54 of file Installer.php.
Installer::__construct | ( | ) |
Constructor, always call this from child classes.
Definition at line 404 of file Installer.php.
References $GLOBALS, $internalDefaults, $type, doEnvironmentPreps(), getDBInstaller(), getInstallerConfig(), and resetMediaWikiServices().
Installer::addInstallStep | ( | $callback, | |
$findStep = 'BEGINNING' |
|||
) |
Add an installation step following the given step.
array | $callback | A valid installation callback array, in this form: [ 'name' => 'some-unique-name', 'callback' => [ $obj, 'function' ] ]; |
string | $findStep | The step to find. Omit to put the step at the beginning |
Definition at line 1996 of file Installer.php.
|
static |
Checks for presence of an Apache module.
Works only if PHP is running as an Apache module, too.
string | $moduleName | Name of module to check. |
Definition at line 1280 of file Installer.php.
|
protected |
Insert Main Page with default content.
DatabaseInstaller | $installer |
Definition at line 1907 of file Installer.php.
References $content, $title, EDIT_NEW, User\newSystemUser(), and wfMessage().
|
protected |
Create the first user account, grant it sysop, bureaucrat and interface-admin rights.
Definition at line 1804 of file Installer.php.
References getVar(), User\newFromName(), and subscribeToMediaWikiAnnounce().
Installer::dirIsExecutable | ( | $dir, | |
$url | |||
) |
Checks if scripts located in the given directory can be executed via the given URL.
Used only by environment checks.
string | $dir | |
string | $url |
Reimplemented in CliInstaller.
Definition at line 1225 of file Installer.php.
References $ext, $file, and $source.
Referenced by envCheckUploadsDirectory().
Installer::disableLinkPopups | ( | ) |
Definition at line 755 of file Installer.php.
|
protected |
Disable the time limit for execution.
Some long-running pages (Install, Upgrade) will want to do this
Definition at line 2004 of file Installer.php.
Referenced by WebInstaller\execute().
Installer::doEnvironmentChecks | ( | ) |
Do initial checks of the PHP environment.
Set variables according to the observed environment.
It's possible that this may be called under the CLI SAPI, not the SAPI that the wiki will primarily run under. In that case, the subclass should initialise variables such as wgScriptPath, before calling this function.
Under the web subclass, it can already be assumed that PHP 5+ is in use and that sessions are working.
Definition at line 533 of file Installer.php.
References setVar(), showError(), and showMessage().
Installer::doEnvironmentPreps | ( | ) |
Definition at line 558 of file Installer.php.
Referenced by __construct().
|
protected |
Generate a secret value for variables using a secure generator.
array | $keys |
Definition at line 1791 of file Installer.php.
References $keys, MWCryptRand\generateHex(), and setVar().
Referenced by generateKeys().
|
protected |
Checks if we're running on 64 bit or not.
32 bit is becoming increasingly hard to support, so let's at least warn people.
Definition at line 1148 of file Installer.php.
References showMessage().
|
protected |
Environment check for compiled object cache types.
Definition at line 903 of file Installer.php.
References setVar(), and showMessage().
|
protected |
Environment check for DB types.
Definition at line 800 of file Installer.php.
References $wgLang, getCompiledDBs(), getDBInstaller(), getVar(), showError(), showStatusMessage(), and wfMessage().
|
protected |
Search for GNU diff3.
Definition at line 935 of file Installer.php.
References setVar(), showMessage(), and wfIsWindows().
|
protected |
Search for git.
Definition at line 982 of file Installer.php.
References setVar(), showMessage(), and wfIsWindows().
|
protected |
Environment check for ImageMagick and GD.
Definition at line 958 of file Installer.php.
References setVar(), showMessage(), and wfIsWindows().
|
protected |
|
protected |
Environment check for available memory.
Definition at line 877 of file Installer.php.
References setVar(), showMessage(), and wfShorthandToInteger().
|
protected |
Scare user to death if they have mod_security or mod_security2.
Definition at line 922 of file Installer.php.
References showMessage().
|
protected |
Environment check to inform user which paths we've assumed.
Reimplemented in CliInstaller, and WebInstaller.
Definition at line 1017 of file Installer.php.
References getVar(), and showMessage().
|
protected |
Environment check for the PCRE module.
Definition at line 846 of file Installer.php.
References showError().
|
protected |
Environment check to inform user which server we've assumed.
Definition at line 1004 of file Installer.php.
References envGetDefaultServer(), and showMessage().
|
protected |
|
protected |
Checks if suhosin.get.max_value_length is set, and if so generate a warning because it is incompatible with ResourceLoader.
Definition at line 1130 of file Installer.php.
References showError().
|
protected |
Environment check for the permissions of the uploads directory.
Definition at line 1111 of file Installer.php.
References $IP, dirIsExecutable(), getVar(), and showMessage().
|
abstractprotected |
Helper function to be called from envPrepServer()
Reimplemented in CliInstaller, and WebInstaller.
Referenced by envCheckServer(), and envPrepServer().
|
protected |
Environment prep for setting $IP and $wgScriptPath.
Reimplemented in WebInstaller.
Definition at line 1211 of file Installer.php.
|
protected |
Environment prep for the server hostname.
Definition at line 1195 of file Installer.php.
References envGetDefaultServer(), and setVar().
Installer::findExtensions | ( | $directory = 'extensions' | ) |
Find extensions or skins in a subdirectory of $IP.
Returns an array containing the value for 'Name' for each found extension.
string | $directory | Directory to search in, relative to $IP, must be either "extensions" or "skins" |
Definition at line 1320 of file Installer.php.
References findExtensionsByType().
Referenced by CliInstaller\__construct().
|
protected |
Find extensions or skins, and return an array containing the value for 'Name' for each found extension.
string | $type | Either "extension" or "skin" |
string | $directory | Directory to search in, relative to $IP |
Definition at line 1340 of file Installer.php.
References $file, $type, getExtensionInfo(), and getVar().
Referenced by findExtensions().
Installer::generateKeys | ( | ) |
Generate $wgSecretKey.
Will warn if we had to use an insecure random source.
Definition at line 1763 of file Installer.php.
References $keys, doGenerateKeys(), and getVar().
|
protected |
Auto-detect extensions with an extension.json file.
Load the extensions, populate $wgAutoloadClasses and return the merged registry data.
Definition at line 1625 of file Installer.php.
References $queue, $wgAutoloadClasses, and getVar().
Referenced by includeExtensions().
Installer::getAutoExtensionHookContainer | ( | ) |
Get the hook container previously populated by includeExtensions().
Definition at line 1649 of file Installer.php.
References $autoExtensionHookContainer.
|
protected |
Auto-detect extensions with an old style .php registration file, load the extensions, and return the merged $wgHooks array.
SecurityCheck-OTHER It thinks $exts/$IP is user controlled but they are not.
Definition at line 1567 of file Installer.php.
References getVar(), and includeExtensionFiles().
Referenced by includeExtensions().
Installer::getCompiledDBs | ( | ) |
Get a list of DBs supported by current PHP setup.
Definition at line 593 of file Installer.php.
References $compiledDBs.
Referenced by envCheckDB().
Installer::getDBInstaller | ( | $type = false | ) |
Get an instance of DatabaseInstaller for the specified DB type.
mixed | $type | DB installer for which is needed, false to use default. |
Definition at line 615 of file Installer.php.
References $type, getDBInstallerClass(), and getVar().
Referenced by __construct(), envCheckDB(), and performInstallation().
|
static |
Get the DatabaseInstaller class name for this type.
string | $type | database type ($wgDBtype) |
Definition at line 604 of file Installer.php.
References $type.
Referenced by UpdateMediaWiki\execute(), and getDBInstaller().
|
static |
Get a list of known DB types.
Definition at line 516 of file Installer.php.
References $dbTypes.
Referenced by WebInstallerDBConnect\execute(), WebInstallerExistingWiki\handleExistingUpgrade(), and DatabaseUpdater\newForDB().
Installer::getDefaultSkin | ( | array | $skinNames | ) |
Returns a default value to be used for $wgDefaultSkin: normally the one set in DefaultSettings, but will fall back to another if the default skin is missing and some other one is present instead.
string[] | $skinNames | Names of installed skins. |
Definition at line 1520 of file Installer.php.
References $GLOBALS.
Referenced by CliInstaller\__construct().
|
protected |
Overridden by WebInstaller to provide lastPage parameters.
string | $page |
Reimplemented in WebInstaller.
Definition at line 1307 of file Installer.php.
|
static |
Determine if LocalSettings.php exists.
If it does, return its variables.
Definition at line 635 of file Installer.php.
References $IP, $wgAutoloadClasses, $wgExtensionDirectory, and $wgStyleDirectory.
Referenced by CliInstaller\execute(), WebInstallerExistingWiki\execute(), and DatabaseUpdater\loadExtensions().
|
protected |
string | $type | Either "extension" or "skin" |
string | $parentRelPath | The parent directory relative to $IP |
string | $name | The extension or skin name |
Definition at line 1383 of file Installer.php.
References $path, $type, getVar(), and readExtension().
Referenced by findExtensionsByType(), and CliInstaller\validateExtensions().
Installer::getFakePassword | ( | $realPassword | ) |
Get a fake password for sending back to the user in HTML.
This is a security mechanism to avoid compromise of the password in the event of session ID compromise.
string | $realPassword |
Definition at line 675 of file Installer.php.
Referenced by WebInstaller\getPasswordBox().
|
static |
Constructs a Config object that contains configuration settings that should be overwritten for the installation process.
Config | $baseConfig |
Definition at line 366 of file Installer.php.
References $objectCaches, CACHE_ANYTHING, CACHE_DB, CACHE_MEMCACHED, CACHE_NONE, and Config\get().
Referenced by __construct().
|
protected |
Get an array of install steps.
Should always be in the format of [ 'name' => 'someuniquename', 'callback' => [ $obj, 'method' ], ] There must be a config-install-$name message defined per step, which will be shown on install.
DatabaseInstaller | $installer | DatabaseInstaller so we can make callbacks |
Definition at line 1670 of file Installer.php.
References $installSteps, and getVar().
Referenced by performInstallation().
Installer::getParserOptions | ( | ) |
Installer::getVar | ( | $name, | |
$default = null |
|||
) |
Get an MW configuration variable, or internal installer configuration variable.
The defaults come from $GLOBALS (ultimately DefaultSettings.php). Installer variables are typically prefixed by an underscore.
string | $name | |
mixed | null | $default |
Definition at line 584 of file Installer.php.
Referenced by CliInstaller\__construct(), createSysop(), envCheckDB(), CliInstaller\envCheckPath(), envCheckPath(), envCheckShellLocale(), envCheckUploadsDirectory(), CliInstaller\execute(), WebInstaller\execute(), findExtensionsByType(), generateKeys(), getAutoExtensionData(), getAutoExtensionLegacyHooks(), WebInstaller\getCheckBox(), getDBInstaller(), getExtensionInfo(), getInstallSteps(), WebInstaller\getPasswordBox(), WebInstaller\getRadioElements(), WebInstaller\getTextArea(), WebInstaller\getTextBox(), includeExtensionFiles(), WebInstaller\outputLS(), readExtension(), resetMediaWikiServices(), WebInstaller\setupLanguage(), and subscribeToMediaWikiAnnounce().
|
protected |
Include the specified extension PHP files.
Populate $wgAutoloadClasses and return the LoadExtensionSchemaUpdates hooks.
string[] | $files |
Definition at line 1591 of file Installer.php.
References $file, $IP, $wgAutoloadClasses, $wgHooks, and getVar().
Referenced by getAutoExtensionLegacyHooks().
|
protected |
Installs the auto-detected extensions.
SecurityCheck-OTHER It thinks $exts/$IP is user controlled but they are not.
Definition at line 1535 of file Installer.php.
References getAutoExtensionData(), and getAutoExtensionLegacyHooks().
|
static |
On POSIX systems return the primary group of the webserver we're running under.
On other systems just returns null.
This is used to advice the user that he should chgrp his mw-config/data/images directory as the webserver user before he can install.
Public because SqliteInstaller needs it, and doesn't subclass Installer.
Definition at line 703 of file Installer.php.
|
static |
Override the necessary bits of the config to run an installation.
Definition at line 1939 of file Installer.php.
References $GLOBALS, and CACHE_NONE.
Installer::parse | ( | $text, | |
$lineStart = false |
|||
) |
Convert wikitext $text to HTML.
This is potentially error prone since many parser features require a complete installed MW database. The solution is to just not use those features when you write your messages. This appears to work well enough. Basic formatting and external links work just fine.
But in case a translator decides to throw in a "#ifexist" or internal link or whatever, this function is guarded to catch the attempted DB access and to present some fallback text.
string | $text | |
bool | $lineStart |
Definition at line 731 of file Installer.php.
Referenced by WebInstaller\getCheckBox(), WebInstaller\getHelpBox(), WebInstaller\getInfoBox(), WebInstaller\getRadioElements(), WebInstaller\makeDownloadLinkHtml(), and WebInstaller\showMessage().
Installer::performInstallation | ( | $startCB, | |
$endCB | |||
) |
Actually perform the installation.
callable | $startCB | A callback array for the beginning of each step |
callable | $endCB | A callback array for the end of each step |
Definition at line 1726 of file Installer.php.
References getDBInstaller(), getInstallSteps(), setVar(), and showMessage().
Referenced by CliInstaller\execute().
Installer::populateSiteStats | ( | DatabaseInstaller | $installer | ) |
Install step which adds a row to the site_stats table with appropriate initial values.
DatabaseInstaller | $installer |
Definition at line 772 of file Installer.php.
References DatabaseInstaller\getConnection().
|
private |
string | $fullJsonFile | |
array | $extDeps | |
array | $skinDeps |
Definition at line 1436 of file Installer.php.
References $type, getVar(), and readExtension().
Referenced by getExtensionInfo(), and readExtension().
Installer::resetMediaWikiServices | ( | Config | $installerConfig = null , |
$serviceOverrides = [] |
|||
) |
Reset the global service container and associated global state to accommodate different stages of the installation.
Config | null | $installerConfig | Config override. If null, the previous config will be inherited. |
array | $serviceOverrides | Service definition overrides. Values can be null to disable specific overrides that would be applied per default, namely 'InterwikiLookup' and 'UserOptionsLookup'. |
MWException |
Definition at line 448 of file Installer.php.
References $lang, $wgLang, $wgMemc, $wgObjectCaches, CACHE_NONE, getVar(), User\newFromId(), and setParserLanguage().
Referenced by __construct(), and restoreServices().
Installer::restoreLinkPopups | ( | ) |
Definition at line 759 of file Installer.php.
References $wgExternalLinkTarget.
Installer::restoreServices | ( | ) |
Restore services that have been redefined in the early stage of installation.
Definition at line 1776 of file Installer.php.
References resetMediaWikiServices().
Installer::setParserLanguage | ( | $lang | ) |
ParserOptions are constructed before we determined the language, so fix it.
Language | $lang |
Definition at line 1297 of file Installer.php.
References $lang.
Referenced by resetMediaWikiServices().
Installer::setPassword | ( | $name, | |
$value | |||
) |
Set a variable which stores a password, except if the new value is a fake password in which case leave it as it is.
string | $name | |
mixed | $value |
Definition at line 686 of file Installer.php.
References setVar().
Referenced by WebInstaller\setVarsFromRequest().
Installer::setVar | ( | $name, | |
$value | |||
) |
Set a MW configuration variable, or internal installer configuration variable.
string | $name | |
mixed | $value |
Definition at line 570 of file Installer.php.
Referenced by CliInstaller\__construct(), doEnvironmentChecks(), doGenerateKeys(), envCheckCache(), envCheckDiff3(), envCheckGit(), envCheckGraphics(), envCheckMemory(), envCheckShellLocale(), envPrepPath(), WebInstaller\envPrepPath(), envPrepServer(), CliInstaller\execute(), performInstallation(), setPassword(), WebInstaller\setupLanguage(), and WebInstaller\setVarsFromRequest().
|
abstract |
Same as showMessage(), but for displaying errors.
string | $msg | |
mixed | ...$params |
Reimplemented in CliInstaller, and WebInstaller.
Referenced by doEnvironmentChecks(), envCheckDB(), envCheckPCRE(), and envCheckSuhosinMaxValueLength().
|
abstract |
UI interface for displaying a short message The parameters are like parameters to wfMessage().
The messages will be in wikitext format, which will be converted to an output format such as HTML or text before being sent to the user.
string | $msg | |
mixed | ...$params |
Reimplemented in CliInstaller, and WebInstaller.
Referenced by doEnvironmentChecks(), envCheck64Bit(), envCheckCache(), envCheckDiff3(), envCheckGit(), envCheckGraphics(), envCheckLibicu(), envCheckMemory(), envCheckModSecurity(), envCheckPath(), envCheckServer(), envCheckUploadsDirectory(), and performInstallation().
|
abstract |
Show a message to the installing user by using a Status object.
Status | $status |
Reimplemented in CliInstaller, and WebInstaller.
Referenced by envCheckDB().
|
private |
Definition at line 1849 of file Installer.php.
References getVar(), and wfMessage().
Referenced by createSysop().
|
protected |
Definition at line 331 of file Installer.php.
Referenced by getAutoExtensionHookContainer().
|
protected |
List of detected DBs, access using getCompiledDBs().
Definition at line 80 of file Installer.php.
Referenced by getCompiledDBs().
|
protected |
Cached DB installer instances, access using getDBInstaller().
Definition at line 87 of file Installer.php.
|
staticprotected |
Known database types.
These correspond to the class names <type>Installer, and are also MediaWiki database types valid for $wgDBtype.
To add a new type, create a <type>Installer class and a Database<type> class, and add a config-type-<type> message to MessagesEn.php.
Definition at line 119 of file Installer.php.
Referenced by getDBTypes().
|
protected |
MediaWiki configuration globals that will eventually be passed through to LocalSettings.php.
The names only are given here, the defaults typically come from DefaultSettings.php.
Definition at line 171 of file Installer.php.
|
protected |
A list of environment check methods called by doEnvironmentChecks().
These may output warnings using showMessage(), and/or abort the installation process by returning false.
For the WebInstaller these are only called on the Welcome page, if these methods have side-effects that should affect later page loads (as well as the generated stylesheet), use envPreps instead.
Definition at line 136 of file Installer.php.
|
protected |
A list of environment preparation methods called by doEnvironmentPreps().
Definition at line 159 of file Installer.php.
|
protected |
Extra steps for installation, for things like DatabaseInstallers to modify.
Definition at line 252 of file Installer.php.
|
private |
The actual list of installation steps.
This will be initialized by getInstallSteps()
-var array<int,array{name:string,callback:array{0:object,1:string}}>
Definition at line 245 of file Installer.php.
Referenced by getInstallSteps().
|
protected |
Variables that are stored alongside globals, and are used for any configuration of the installation process aside from the MediaWiki configuration.
Map of names to defaults.
Definition at line 208 of file Installer.php.
Referenced by __construct().
array Installer::$licenses |
License types.
Definition at line 294 of file Installer.php.
|
protected |
Minimum memory size in MB.
Definition at line 94 of file Installer.php.
|
protected |
Known object cache types and the functions used to test for their existence.
Definition at line 259 of file Installer.php.
Referenced by getInstallerConfig().
|
protected |
Cached ParserOptions, used by parse().
Definition at line 108 of file Installer.php.
Referenced by getParserOptions().
|
protected |
Cached Title, used by parse().
Definition at line 101 of file Installer.php.
array Installer::$rightsProfiles |
User rights profiles.
Definition at line 269 of file Installer.php.
|
protected |
Definition at line 73 of file Installer.php.
Referenced by WebInstaller\execute(), and WebInstaller\finish().
|
private |
URL to mediawiki-announce list summary page.
Definition at line 67 of file Installer.php.
const Installer::MINIMUM_PCRE_VERSION = '7.2' |
The oldest version of PCRE we can support.
Defining this is necessary because PHP may be linked with a system version of PCRE, which may be older than that bundled with the minimum PHP version.
Definition at line 62 of file Installer.php.
Referenced by UpdateMediaWiki\compatChecks().