MediaWiki Customization - shawfdong/hyades GitHub Wiki

Cron job to delete old revisions

/etc/cron.weekly/wiki-del-old-revs:

#!/bin/bash

cd /var/www/ssl/hyades/
/usr/bin/php maintenance/deleteOldRevisions.php --delete &> /dev/null
/usr/bin/php maintenance/deleteArchivedRevisions.php --delete &> /dev/null

LocalSettings.php

<?php
if ( !defined( 'MEDIAWIKI' ) ) {
	exit;
}

$wgSitename      = "Hyades";
$wgScriptPath       = "/hyades";
$wgScriptExtension  = ".php";
$wgServer           = "https://pleiades.ucsc.edu";
$wgStylePath        = "$wgScriptPath/skins";
$wgLogo             = "$wgServer/images/hyades_155.png";
$wgFavicon          = "$wgServer/favicon.ico";
$wgEnableEmail      = false;
$wgEnableUserEmail  = true; # UPO
$wgEmergencyContact = "[email protected]";
$wgPasswordSender   = "[email protected]";
$wgEnotifUserTalk      = false; # UPO
$wgEnotifWatchlist     = false; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "wikidb";
$wgDBuser           = "wikiuser";
$wgDBpassword       = "xxxxxxxxxx";

# MySQL specific settings
$wgDBprefix         = "";
$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
$wgDBmysql5 = false;

## Shared memory settings
$wgMainCacheType    = CACHE_ACCEL;
$wgMemCachedServers = array();

$wgEnableUploads  = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

$wgUseInstantCommons  = false;
$wgShellLocale = "en_US.utf8";
$wgCacheDirectory = "$IP/cache";
$wgLanguageCode = "en";

$wgSecretKey = "xxxxxxxxxx";
$wgUpgradeKey = "xxxxxxxxxx";

$wgDefaultSkin = "vector";

$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl  = "http://creativecommons.org/licenses/by/4.0/";
$wgRightsText = "Creative Commons Attribution 4.0 International Public License";
$wgRightsIcon = "$wgServer/images/cc40.png";

$wgDiff3 = "/usr/bin/diff3";

$wgResourceLoaderMaxQueryLength = -1;

$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;

$wgDisableCounters = true;
$wgUseFileCache = true;
$wgFileCacheDirectory = "$IP/cache";
$wgShowIPinHeader = false;

$wgArticlePath      = "/hyades/$1";
$wgUsePathInfo      = true;
require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";
$wgMFAutodetectMobileView = true;
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
$wgPFEnableStringFunctions = true;
require_once "$IP/extensions/Cite/Cite.php";
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 1;
$wgDefaultUserOptions['wikieditor-publish'] = 1;

require_once "$IP/skins/CologneBlue/CologneBlue.php";
require_once "$IP/skins/Modern/Modern.php";
require_once "$IP/skins/MonoBook/MonoBook.php";
require_once "$IP/skins/Vector/Vector.php";

References

⚠️ **GitHub.com Fallback** ⚠️