Wiki hints

From Klaus' wiki
Revision as of 10:47, 26 January 2016 by Klaus (Talk | contribs)

Jump to: navigation, search

After adding administrator rights to the logged in user (using Wikisysop login) use <wikiURL>/index.php/MediaWiki:Sidebar to get to edit the left menu.

Use ?action=puge to refresh a graph

Moving a wiki

Install MediaWiki, MariaDb and other stuff and configure as described over here.

It is a long term stable version of MediaWiki that is installed. It will be kept updated with security patches but no new functionality.

Install ImageMagick.

Create the necessary databases for your wiki and grant usage to the username that you want to use from the wiki.

Create a directory in /var/www/html for the wiki, e.g eudp.dk.

Configure the httpd server to accept the requests to eudp.dk. I use include files to the httpd.conf. Add this to the end of the httpd.conf

NameVirtualHost *:80
Include /etc/httpd/conf/domains/*

eudp.dk contains this:

<VirtualHost *:80>
  DirectoryIndex        index.html index.htm index.php index.asp default.asp
  ServerAdmin           klausk@hih.au.dk
  DocumentRoot          /var/www/html/eudp.dk
  ServerName             eudp.dk
  ServerAlias            eudp.dk.<the local server name>
  ServerAlias            eudp.net
  ServerAlias            eudp.com
  ServerAlias            www.eudp.dk
  ServerAlias            www.eudp.net
  ServerAlias            www.eudp.com
  ErrorLog              /var/log/httpd/domains/eudp.dk/error.log
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
  Customlog               /var/log/httpd/domains/eudp.dk/access.log combined
</VirtualHost>

Start the http server and watch for errors - keep working with the configuration until no errors are shown.

 $] systemctl start httpd

Over at this place are some hints to get it up running if you want to run several wiki's on one installation of the MediaWiki (which should keep maintenance down when upgrading to a new MediaWiki).

Create a symbolic link MediaWiki to the MediaWiki<version> directory in /var/www - it makes it easier to upgrade later by simple moving the symbolic link.

cd into the newly created directory, e.g. /var/www/html/eudp.dk

[.../eudp.dk] $] ln -s /var/www/mediawiki/* .

Provided that you have the DNS set correct you can now start your browser and point it to the web server address. HINT: you can modify your /etc/hosts locally on your Linux desktop to point to the server using an IP address.

If you enter

IP.Address    eudp.dk.<the local server name>

in your /etc/hosts you can access the full address while moving the wiki content from one server to another and finally swing your DNS around, when everything is working as expected. Note: <the local server name> can be almost anything valid URL, but your local servername may be a good thing to use to keep confusion down.

If you're lucky you browser should now show you the initial configuration page for the wiki. Configure as required for your setup.