| Status: | effective |
| Progress: | 100% |
| Version: | 7.3.0+ |
$smwgConfigProfiles
| 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:
db-primary-keys– adds primary keys to all Semantic MediaWiki tables, for database clusters that require them, such as "Percona XtraDB Cluster"developer– debugging and logging settings; not for productionelastic-fileingest– sets the ElasticStore as the default store and enables file ingestionmedia– adds three special properties to configuration parameter$smwgPageSpecialPropertiesSets the page related special properties to be used: special property "MIME type"Holds the MIME type of an uploaded file, special property "Media type"Holds the Media type of an uploaded file and special property "Attachment link"Holds the links to files embedded on a page
Run maintenance script "update.php" (MediaWiki.org) after enabling or removing db-primary-keys, elastic-fileingest or media.
require in the "LocalSettings.php" file. Remove such require lines when switching to this configuration parameter.
See also
- Help page on configuration preloading
- Help page on configuration parameter
$smwgPageSpecialPropertiesSets the page related special properties to be used
References
- ^ | Semantic MediaWiki: GitHub pull request gh:smw:7118