Installing and configuring MediaWiki


Installation:
 
Here everything is simple – the installation is not particularly different from the installation of any CMS – joomla or wordpress.
 
1) Download MediaWiki distribution kit
2) Create a database and database user

3) Upload it to our server and enter the site through the browser
4) Go through the installation procedure following the instructions. Everything is very detailed, so that there should be no problem.

As far as I understand there is no special chmod settings. The default setting is 700 for folders and 600 for files. If you want to allow users to download images, set 777 for folder images
Tuning:
 
It’s a little more complicated than that. MediaWiki has no admin interface. All changes are made “by hand” in the LocalSettings.php file
 
Change the logo:
By default it’s in skins/common/images/wiki.png – you can just redraw that picture.
 
The other way is to set your own. Add this line to the file LocalSettings.php:
$wgLogo = “{$wgScriptPath}/images/logofinal.png”;
Where we specify path to logo (135 * 135 by default).
 
Change the title page:
Go to the page that links to the main page – “MediaWiki:Mainpage” (e.g. http://site.com/MediaWiki:Mainpage or http://site.com/wiki/MediaWiki:Mainpage). Edit it and enter the desired title.
 
Install the visual editor (WYSIWYG):
There are several extensions to extend the capabilities of the standard visual editor. When choosing, I recommend paying attention to the date of the last update – the developers stopped supporting some versions of extensions.
 
Installation is quite simple – copy the extension to the /extensions folder and write options for it in LocalSettings.php.
 
Short URLs (CNC):
The settings vary depending on what version of the server you have. It worked for me with the following settings:

1) Create a .htaccess file with this content:

RewriteEngine On
RewriteRule ^/(.*):(.*) /index.php/$1:$2
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?title=$1 [L,QSA]

2) in LocalSettings.php write:
$wgArticlePath = “/$1”;

System message
 
Edit the MediaWiki:Sitenotice page (e.g. http://site.com/wiki/MediaWiki:Sitenotice or http://site.com/MediaWiki:Sitenotice).
 
Navigation bar
 
Similar to the last point, but go to the MediaWiki:Sidebar page

Remove copyright in the footer

In the old version of MediaWiki:

/skins/MonoBook.php

Edit:
$footerlinks = array(
‘lastmod’, ‘viewcount’, ‘numberofwatchingusers’, ‘credits’, ‘copyright’,
‘privacy’, ‘about’, ‘disclaimer’, ‘tagline’,
);

lastmod – time of last change;
viewcount – number of views;
numberofwatchingusers – number of users who view the page;
copyright – copyright information
privacy – normal link
about — normal link
disclaimer – normal link

Copyright image in the same file, delete/comment:

if($this->data[‘copyrightico’]) { ?>
<div id=”f-copyrightico”><?php $this->html(‘copyrightico’) ?></div>
<?php }

In the new version of MediaWiki:

Removed from the template, this is now configurable by variables (link).

MediaWiki to open links in a new window

$wgExternalLinkTarget = ‘_blank’;


This entry was posted in Mediawiki (en). Bookmark the permalink.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.