Difference between revisions of "Building Wiki Servers"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 2: Line 2:
*[[WebServer - Basic LAMP Stack Install{{!}}Basic LAMP Stack Install]]
*[[WebServer - Basic LAMP Stack Install{{!}}Basic LAMP Stack Install]]


<span style="color: rgb(255, 0, 0);">'''Now Do A Backup!'''</span>
<span style="color: rgb(255, 0, 0);">'''[[Now Do A Backup!{{!}}Now Do A Backup!]]'''</span>
= Download MediaWiki =
= Download MediaWiki =


Line 32: Line 32:
== Create the database ==
== Create the database ==
* <code>sudo mysql -u root -p</code>
* <code>sudo mysql -u root -p</code>
  CREATE DATABASE nerdmage_wiki;
  CREATE DATABASE nerdmage_wiki;
  GRANT ALL PRIVILEGES ON '''my_wiki'''.* TO ''''USERNAME''''@'localhost';
  GRANT ALL PRIVILEGES ON '''my_wiki'''.* TO ''''USERNAME''''@'localhost';
Line 48: Line 47:
<span style="color: rgb(255, 0, 0);">'''Now Do A Backup!'''</span>
<span style="color: rgb(255, 0, 0);">'''Now Do A Backup!'''</span>


= <span style="color: rgb(132, 63, 161);" >More coming here...</span> =
= <span style="color: rgb(132, 63, 161);">More coming here...</span> =


= Just some notes. =
= Just some notes. =

Revision as of 16:23, 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

Create the database

  • sudo mysql -u root -p
CREATE DATABASE nerdmage_wiki;
GRANT ALL PRIVILEGES ON my_wiki.* TO 'USERNAME'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Adjust PHP Settings

  • sudo vi /etc/php/7.4/apache2/php.ini

(this may be in a slightly different location depending on version of php installed...)

increase upload_max_filesize to 200M

increase post_max_size to 200M

Now Do A Backup!

More coming here...

Just some notes.