MediaWiki

From 24PinTech Wiki
Revision as of 17:38, 8 August 2022 by Lchristopherson (talk | contribs)
Jump to navigation Jump to search


About

MediaWiki-2020-logo.svg.png

Mediawiki is the software that our wiki runs on. Mediawiki is ran on our LEMP stack and allows for "wikipedia" type pages to be made securely. Installing a wiki is a very simple process, so pay attention...


Before you begin, make sure that you have a server block set up for the wiki.

Links

https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki

https://www.mediawiki.org/wiki/Manual:Config_script

Installation

To begin the installation for MediaWiki, you need to have a working webserver, in which we are running a LEMP stack. You will visit MediaWiki's Download website to download the newest version of MediaWiki in .tar.gz format. Once you have the .tar.gz file, you must PuTTY the file into the webserver. Now you have to unzip the file into the working wiki directory. Move the zip into the root of the server block by running, sudo mv ./mediawiki-install-zip /var/www/wiki-install-directory. Once you have moved the zip into the folder, you need to unzip it. Do so by running sudo tar -xzvf ./mediawiki-install-zip. The best practice is to use a folder named "w", for the wiki files, though we used the root directory. To change the directory's name, you will run sudo mv ./mediawiki-install ./new-name. If you are moving all of the contents into the root website directory you will run, sudo mv ./mediawiki-install/* ./.

Create a database for the wiki

The wiki needs specific parameters for the database to correctly function. Log into mysql by running sudo mysql -u root -p. Once you log in you will run the following commands with your settings.

CREATE DATABASE db_name;

CREATE USER 'wikiuser'@'localhost' IDENTIFIED BY 'db_password';

GRANT ALL PRIVILEGES ON db_name.* TO 'wikiuser'@'localhost' WITH GRANT OPTION;

This will successfully create the database and database user for your wiki.

Install the wiki

https://wiki.24pin.tech/edit/MediaWiki:Sidebar to edit sidebar