Difference between revisions of "Building Wiki Servers"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 11: Line 11:
* <code>tar -xvzf mediawiki-'''1.37.1'''.tar.gz</code>
* <code>tar -xvzf mediawiki-'''1.37.1'''.tar.gz</code>


= Install MediaWiki =
= Unpack MediaWiki =
There are a couple of different ways to set up the root of your wiki.
There are a couple of different ways to set up the root of your wiki.


Line 17: Line 17:


== as part of your regular web site ==
== as part of your regular web site ==
* <code>sudo mkdir /var/www/html/wiki</code>
* <code>sudo tar --directory=/var/www/html/wiki -xvzf mediawiki-'''1.37.1'''.tar.gz</code>
* <code>sudo chmod -R ugo+rwX /var/www/html/wiki/images</code>


==  or at an independent URL ==
==  or at an independent URL ==
Line 22: Line 26:
* <code>sudo mkdir /var/www/wiki</code>
* <code>sudo mkdir /var/www/wiki</code>
* <code>sudo tar --directory=/var/www/wiki -xvzf mediawiki-'''1.37.1'''.tar.gz</code>
* <code>sudo tar --directory=/var/www/wiki -xvzf mediawiki-'''1.37.1'''.tar.gz</code>
* <code>sudo chmod -R ugo+rwX /var/www/wiki/images</code>
= Set Up MediaWiki =


<span style="color: rgb(255, 0, 0);">'''Now Do A Backup!'''</span>
<span style="color: rgb(255, 0, 0);">'''Now Do A Backup!'''</span>

Revision as of 16:06, 13 January 2022

Start with a WebServer

Now Do A Backup!

Download MediaWiki

  • Check the download page for latest version. (ATM, the current version turns out to be 1.37.1)
    • Adjust the following commands appropriately (i.e.: replace 1.37.1 with the current version number) if needed.
  • wget https://releases.wikimedia.org/mediawiki/1.37/mediawiki-1.37.1.tar.gz
  • Extract it
  • tar -xvzf mediawiki-1.37.1.tar.gz

Unpack MediaWiki

There are a couple of different ways to set up the root of your wiki.

You can either set it up to be reached

as part of your regular web site

  • sudo mkdir /var/www/html/wiki
  • sudo tar --directory=/var/www/html/wiki -xvzf mediawiki-1.37.1.tar.gz
  • sudo chmod -R ugo+rwX /var/www/html/wiki/images

or at an independent URL

  • sudo mkdir /var/www/wiki
  • sudo tar --directory=/var/www/wiki -xvzf mediawiki-1.37.1.tar.gz
  • sudo chmod -R ugo+rwX /var/www/wiki/images

Set Up MediaWiki

Now Do A Backup!

Just some notes.