Aucun résumé des modifications |
|||
| (7 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 3 : | Ligne 3 : | ||
{{clear}} | {{clear}} | ||
== Téléchargement == | == Téléchargement == | ||
{{blubox-jck|content= | {{blubox-jck|title=|content= | ||
{{Download|keyword=mediawiki_download}}<br /> | {{Download|keyword=mediawiki_download}}<br /> | ||
| Ligne 36 : | Ligne 36 : | ||
=== En local === | === En local === | ||
J'ai installé EasyPHP | J'ai installé EasyPHP | ||
*Fichier {{File|.htaccess}} | * Fichier {{File|.htaccess}} | ||
: {{syntaxhighlight |lang=apacheconf|code= | |||
RewriteRule ^wiki/?(.*)$ MediaWiki/index.php?title=$1 [L,QSA] | RewriteRule ^wiki/?(.*)$ MediaWiki/index.php?title=$1 [L,QSA]}} | ||
*Fichier {{File|http.conf}} | * Fichier {{File|http.conf}} | ||
: {{syntaxhighlight |lang=apacheconf|code= | |||
Alias "/wiki" "F:/sites free/site OVH JLT local/MediaWiki/index.php" | Alias "/wiki" "F:/sites free/site OVH JLT local/MediaWiki/index.php" | ||
Alias "/MediaWiki" "F:/sites free/site OVH JLT local/MediaWiki" | Alias "/MediaWiki" "F:/sites free/site OVH JLT local/MediaWiki" | ||
| Ligne 54 : | Ligne 54 : | ||
=== Sur un serveur distant === | === Sur un serveur distant === | ||
*Fichier {{File|.htaccess}} du root | * Fichier {{File|.htaccess}} du root | ||
: {{syntaxhighlight|lang=apacheconf|code= | |||
# anything under /wiki is treated as an article title | # anything under /wiki is treated as an article title | ||
RewriteRule ^wiki/(.+)$ MediaWiki/index.php?title=$1 [PT,L,QSA] | RewriteRule ^wiki/(.+)$ MediaWiki/index.php?title=$1 [PT,L,QSA] | ||
| Ligne 64 : | Ligne 64 : | ||
== Icône du lien == | == Icône du lien == | ||
Editer le fichier LocalSetting et ajouter:{{syntaxhighlight |lang=php|code=$wgFavicon = "$wgScriptPath/path/to/your/favicon.ico";}} | |||
$wgFavicon = "$wgScriptPath/path/to/your/favicon.ico"; | |||
}} | |||
== Nouvelle image pour la page d'accueil == | == Nouvelle image pour la page d'accueil == | ||
| Ligne 95 : | Ligne 91 : | ||
* interdire la création de compte | * interdire la création de compte | ||
: Modifier le fichier {{File|LocalSettings.php}} | |||
: {{Syntaxhighlight|lang=php|code= | |||
$wgGroupPermissions['*']['createaccount'] = false; | $wgGroupPermissions['*']['createaccount'] = false; | ||
}} | }} | ||
<br/> | <br/> | ||
* interdire l'édition des pages sans login | * interdire l'édition des pages sans login | ||
: {{Syntaxhighlight|lang=php|code= | |||
$wgGroupPermissions['*']['edit'] = false; | $wgGroupPermissions['*']['edit'] = false; | ||
}} | }} | ||
<br/> | <br/> | ||
* masquage de l'IP dans la bannière | * masquage de l'IP dans la bannière | ||
: {{Syntaxhighlight|lang=php|code= | |||
$wgShowIPinHeader = false; | $wgShowIPinHeader = false; | ||
}} | }} | ||
<br/> | <br/> | ||
* Enlever la barre d'outils pour les utilisateurs sans login: | * Enlever la barre d'outils pour les utilisateurs sans login: | ||
: Remplacer dans le fichier {{File|MonoBook.php}} | |||
: {{Syntaxhighlight|lang=php|code= | |||
<div class="portlet" id="p-tb"> | <div class="portlet" id="p-tb"> | ||
<h5><?php $this->msg('toolbox') ?></h5> | <h5><?php $this->msg('toolbox') ?></h5> | ||
}} | }} | ||
: par | |||
: {{Syntaxhighlight|lang=php|code= | |||
<?php if($this->data['loggedin']) { ?> | <?php if($this->data['loggedin']) { ?> | ||
<h5><?php $this->msg('toolbox') ?></h5> | <h5><?php $this->msg('toolbox') ?></h5> | ||
Download - MediaWikiJ'ai installé la version 1.15.3.
Je l'ai mise à jour vers la 1.17. cfpuis vers la 1.19 (cf Modification pour la 1.19)
On pourra se référer aux tutoriaux présents sur
Pour installer mediawiki ne pas oublier d'ajouter
Pour la base de données chez Free (je suis ensuite passé chez OVH)
J'ai installé EasyPHP
RewriteRule ^wiki/?(.*)$ MediaWiki/index.php?title=$1 [L,QSA]
Alias "/wiki" "F:/sites free/site OVH JLT local/MediaWiki/index.php"
Alias "/MediaWiki" "F:/sites free/site OVH JLT local/MediaWiki"
<Directory "F:/sites free/site OVH JLT local/MediaWiki">
Options +FollowSymLinks +Indexes +ExecCGI
AllowOverride All
Order deny,allow
Allow from 127.0.0.1
Allow from all
</Directory>
# anything under /wiki is treated as an article title
RewriteRule ^wiki/(.+)$ MediaWiki/index.php?title=$1 [PT,L,QSA]
Editer le fichier LocalSetting et ajouter:
$wgFavicon = "$wgScriptPath/path/to/your/favicon.ico";
$wgLogo = "images/montagne.jpg";
Pour mettre à jour le lien vers la page d’accueil, éditer MediaWiki:MainPage .
Cette boîte est modifiable à partir de la page MediaWiki:Sidebar
* navigation
** [http://jltryoen.fr/joomla]| Accueil du site
** mainpage|mainpage-description
** helppage|help
* SEARCH
* TOOLBOX
* LANGUAGES
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgShowIPinHeader = false;
<div class="portlet" id="p-tb">
<h5><?php $this->msg('toolbox') ?></h5>
<?php if($this->data['loggedin']) { ?>
<h5><?php $this->msg('toolbox') ?></h5>
On peut faire la même chose pour la boite de recherche
if ($wgUser->isLoggedIn()) {
$lines = explode( "\n", wfMsgForContent( 'sidebar' ) );
} else {
$lines = explode( "\n", wfMsgForContent( 'anon_sidebar' ) );
foreach($this->data['content_actions'] as $key => $tab) {
foreach($this->data['content_actions'] as $key => $tab) if($this->data['loggedin']==1) {
$wgDefaultSkin = 'gumax'
Installation
Astuces
Mes extensions