Difference between revisions of "WikiServer - Install"

From The TinkerNet Wiki
Jump to navigation Jump to search
(Created page with "=== Install the LAMP Stack === Basic LAMP Stack Install === Install MediaWiki === * <code>wget <nowiki>https://releases.wikimedia.o...")
 
m (Tinker moved page WikiServer - (includes Multiple Wikis on a single server) to WikiServer - Install without leaving a redirect)
(No difference)

Revision as of 21:07, 1 June 2020

Install the LAMP Stack

Basic LAMP Stack Install

Install MediaWiki

  • wget https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.1.tar.gz
  • tar -xvzf mediawiki-*.tar.gz
  • sudo mkdir /var/www/html/wiki
  • sudo mkdir /var/www/html/labnotes
  • sudo cp -r mediawiki-*/* /var/www/html/wiki
  • sudo cp -r mediawiki-*/* /var/www/html/labnotes
  • sudo mysql -u root -p
CREATE DATABASE my_wiki;
GRANT ALL PRIVILEGES ON my_wiki.* TO 'someone'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
CREATE DATABASE my_notes;
GRANT ALL PRIVILEGES ON my_notes.* TO 'someone'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;
  • sudo vim /etc/php/7.2/apache2/php.ini
    • increase upload_max_filesize to 200M
  • Fix upload directories:
    • sudo chmod -R ugo+rwX /var/www/html/wiki/images
    • sudo chmod -R ugo+rwX /var/www/html/labnotes/images

Browse to http://ServerAddress/wiki & follow the steps presented.

Set it as Authorised editors only.

Browse to http://ServerAddress/notes & follow the steps presented.

Set as Private Wiki