MediaWiki/LocalSettings.php

From Wiki
  • Logo
$wgLogo                = "skins/common/images/mediawiki.png";
  • Uploads
$wgEnableUploads       = true;
$wgUseImageResize      = true;
$wgUseImageMagick      = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgFileExtensions      = array( 'png', 'gif', 'jpg', 'jpeg', 'svg', 'mp4', 'pdf', 'zip', 'rar', 'ace', '7z',
                               'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'odt', 'ods', 'odp', 'odg', 'odf', 'csv');
$wgSVGConverter = 'rsvg';
$wgMaxUploadSize = 1024*1024*256; #256MB
#$wgAllowExternalImages = true;
  • Link Protocols
$wgUrlProtocols        = array('http://','https://','ftp://','file://','mailto:','news:');
  • Timezone
$wgLocaltimezone = "Europe/Berlin";
$wgLocalTZoffset = date("Z") / 60;
  • TeX
$wgUseTeX        = true;
$wgTmpDirectory  = "$IP/images/math";
  • No write permissions to anonymous
$wgGroupPermissions['*']['edit'] = false;
  • No anonymous access except Mainpage
$wgWhitelistRead = array ("Hauptseite", "Spezial:Anmelden", "Spezial:Abmelden",
                          "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;	
$wgGroupPermissions['*']['createaccount'] = false;
  • Namespaces
$wgExtraNamespaces[100] = "Privat";
$wgExtraNamespaces[101] = "Privat_talk";
$wgNamespacesWithSubpages[NS_MAIN] = true;                         # Subpages "/"
$wgContentNamespaces = array (100,102);
$wgNamespacesToBeSearchedDefault[102] = true;