Install MediaWiki/Modifications pour la 1.17 — La FAQ de JLT

Install MediaWiki/Modifications pour la 1.17

Article publié le : 19 février 2015 21:34:08


Install MediaWiki/Modifications pour la 1.17
Nom mediawiki
Version 1.17.1

Install_MediaWiki

Installation

  • sauvegarde du site et de la base de données Sauvegarde de site
  • sauvegarde du fichier LocalSettings.php
  • décompression de la version sur un nouveau répertoire, puis recopie sur le répertoire d'installation de MediaWiki


J'ai récupéré le targz mediawiki-1.17.1
puis je l'ai dézippé à l'aide d'un script php upgrade.php
//supression anciens répertoires
system("rm -rf ../MediaWiki/bin ../MediaWiki/cache ../MediaWiki/docs ../MediaWiki/includes ../MediaWiki/langages");
system("rm -rf  ../MediaWiki/maintenance ../MediaWiki/mw-config ../MediaWiki/resources ../MediaWiki/serialized ../MediaWiki/tests");
//dézipper
system("tar -C  ../MediaWiki --strip-components 1 -zxf ../tmp/mediawiki-1.17.1.tar.gz ");
  • lancement de l'installation
http://www.jltryoen.fr/MediaWiki/mw-config/
=> mise à jour de la base de données
  • reprise/vérification du fichier LocalSettings.php
 

Extensions Utilisées

Skins

Modifications de LocalSettings

# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
	$IP = MW_INSTALL_PATH;
} else {
	$IP = dirname( __FILE__ );
}
$wgLogo = "images/montagne2.jpg";
 
 
$wgEnableUploads  = true;
$wgUseImageResize               = true;
 
 
//$wgDefaultSkin ='dynamicskin';
$wgDefaultSkin = 'gumax';
//$wgDefaultSkin = 'gumaxdd';
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl  = "";
$wgRightsText = "";
$wgRightsIcon = "";
 
 
 
$wgDisableAnonTalk = true;
#no cache
$wgMessageCacheType = CACHE_NONE;
$wgParserCacheType = CACHE_NONE;
$wgCachePages = false;
#####################################################################
# User authentication via Joomla using AuthJoomla2
# AuthJoomla v 2.2
if (strpos($_SERVER['HTTP_REFERER'], "joomla") != false)
{
         ...
	require_once("$IP/extensions/AuthJoomla2/AuthJoomla2.php");
	SetupAuthJoomla();
}	
 
#extension for HTML
require_once("$IP/extensions/StubManager/StubManager.php" );
require_once("$IP/extensions/SecureHTML/SecureHTML.php" );
require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");
require_once("$IP/extensions/FCKeditor/FCKeditor.php");
require_once("$IP/extensions/coolTable/coolTable.php");
 
#control categories

$wgGroupPermissions['*']['createaccount'] = false; 
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['family'] = $wgGroupPermissions['user'];
 
require_once("$IP/extensions/CategoryControl/CategoryControl.php");
$wgCategoryPermissions['Sports']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Sports']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
$wgCategoryPermissions['Catégories_cachées']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Catégories_cachées']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
$wgCategoryPermissions['Private']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Private']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
 
 
 
#CategoryTree
$wgUseAjax = true;
require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");
require_once("$IP/extensions/UserFunctions/UserFunctions.php");
require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");
 
#useradmin
require_once("$IP/extensions/UserAdmin/UserAdmin.php");