STEP ONE - INSTALL MEDIAWIKI FROM THE REPOS
Code: Select all
apt-get install mediawiki
STEP TWO - EDIT MEDIAWIKI APACHE CONF
Code: Select all
vi /etc/apache2/conf-available/mediawiki.conf
Alias /mediawiki /var/lib/mediawiki
STEP THREE - EDIT APACHE CONF
Code: Select all
vi /etc/apache2/apache2.conf
Code: Select all
<Directory /var/lib/mediawiki/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Code: Select all
a2enconf mediawiki; service apache2 restart
STEP FIVE - SET UP MEDIAWIKI
It's pretty straightforward to set up mediawiki. The database is mysql which you installed before. At the end of all the steps, you will be asked to download a file LocalSettings.php ...move this to the mediawiki's directory and chmod as such:
Code: Select all
mv LocalSettings.php /var/lib/mediawiki/
chmod +r /var/lib/mediawiki/LocalSettings.php
Code: Select all
vi /var/lib/mediawiki/LocalSettings.php
Code: Select all
require_once "$IP/extensions/WikiEditor/WikiEditor.php";
# Enables use of WikiEditor by default but still allow users to disable it in preferences
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
# Displays the Preview and Changes tabs
#$wgDefaultUserOptions['wikieditor-preview'] = 1;
# Displays the Publish and Cancel buttons on the top right side
#$wgDefaultUserOptions['wikieditor-publish'] = 1;
once you make a custom logo, copy it with this command:
Code: Select all
cp wiki.png /usr/share/mediawiki/skins/common/images/wiki.png