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

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

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

<VirtualHost *:80>
  DirectoryIndex        index.html index.htm index.php index.asp default.asp
  DocumentRoot          /var/www/html/
  ServerAlias  <the local server name>
  ErrorLog              /var/log/httpd/domains/
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
  Customlog               /var/log/httpd/domains/ combined

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/

[.../] $] 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<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.