$smwgConfigProfiles

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgConfigProfiles
Description Applies configuration profiles shipped with Semantic MediaWiki
Default setting
[]
Software Semantic MediaWiki
Since version
Until version still available
Configuration Installation
Keyword installation · configuration preloading · profiles


$smwgConfigProfiles is a configuration parameter that applies configuration profiles from the data/config directory of Semantic MediaWiki, by name with or without the .php extension. Custom profile files are not supported. Profiles are applied after the "LocalSettings.php" file, so their settings take precedence over the same settings there. The configuration parameter was introduced in Semantic MediaWiki 7.3.0Released on 16 September 2026 and compatible with MW 1.43.x - 1.46.x..1

Default setting

$smwgConfigProfiles = [];

This means that no profile is applied.

Changing the default setting

To modify this configuration parameter, add the following line to your "LocalSettings.php" file:

Apply the "media" and "db-primary-keys" profiles
$smwgConfigProfiles = [ 'media', 'db-primary-keys' ];

The available profiles are:

Run maintenance script "update.php" (MediaWiki.org) after enabling or removing db-primary-keys, elastic-fileingest or media.

The wiki does not start when a profile name is unknown, or when a profile is also loaded with require in the "LocalSettings.php" file. Remove such require lines when switching to this configuration parameter.

See also

References

  1. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:7118

Cookies help us deliver our services. By using our services, you agree to our use of cookies.