How to install

Aus SOP World

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

[bearbeiten] Installation

[bearbeiten] MediaWiki

Install mediawiki as described in the Installation Guide. Important: Before installing any SOP extensions, set the language of MediaWiki to german, or you will receive very mysterious error messages.

[bearbeiten] Semantic MediaWiki

  • Download
  • Installing instruction (extract from supplied data file INSTALL)
    1. Extract the archive or check out the current files from CVS to obtain the directory "SemanticMediaWiki" that contains all relevant files. Copy this directory to "[wikipath]/extensions/" (or extract/download it to this place). We abbreviate "[wikipath]/extensions/SemanticMediaWiki" as "[SMW_path]" below.
    2. Insert the following line at the end (just before "?>") of the file "[wikipath]/LocalSettings.php": "include_once('extensions/SemanticMediaWiki/includes/SMW_Settings.php');" (May be removed later, because IESE_Includes.php includes the data file as well.) Also, insert "enableSemantics('<yourhostnamehere>');".
    3. In your wiki, log in as a user with admin status and go to the page "Special:SMWAdmin" to do the final setup steps. (= Creating data base tables)

[bearbeiten] SOP-Extensions

[bearbeiten] Resources

Obtain the current version at [1] Unpack the archive in the extensions-folder


[bearbeiten] Adapting Local Settings.php

  • [WIKI]/LocalSettings.php:
include_once("extensions/sop_plugins/sop_settings.php");

integrate at the end (before ‘?>’).

  • Grant the Database User the wiki uses global create privilege to create new databases. Also, give it all other necessary privileges (select, insert, drop ...) on the newly created table. TODO There must be a better way.

[bearbeiten] Configuration

[bearbeiten] Fileupload

  • Activate: LocalSetting.php => $wgEnableUploads setting true.
  • Configuration:
    • permitted data file endings copy from “includes/DefaultSettings.php” (($wgFileExtensions, row 1247) to Local-Settings.
    • extend with ‘pdf’ or other requested endings.
    • poss. adapt blacklist and enable upload generally

[bearbeiten] Access (Schreibzugriff) only for registered users

Reason: So it is possible to address to the user Edit the according data file includes/DefaultSettings.php:

$wgGroupPermissions['*']['edit'] = false;

[bearbeiten] Optional for Exposed Wikis

I.e. Wikis, which should be accassable from outside, but not be seen by everyone. For changing access rights for existing groups (e.g. ‘*’.user or ‘sysop’) or for adding new groups, the access rights of the groups has to be edited by the according sytax in extensions/IESE_SpecialRoles.php on the server.

  • Registration only by Administrators
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = true;
  • Rights (Leserechte) only for registered users
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgWhitelistRead = array ("Main Page","Special:Userlogin","-","MediaWiki:Monobook.css");

Sysops may add new users further more under special site Special:Userlogin.

  • Rights for using extensions
$wgGroupPermissions['user']['unfreeze'] = true;
$wgGroupPermissions['user']['freeze'] = true;
$wgGroupPermissions['sysop']['deleteversiontag'] = true;

Creating Accounts under special site Page Login/create account

[bearbeiten] Help

Integrate Link on Wikipedia: How to edit a page.

[bearbeiten] Setting (Serverzeit)

In data file includes/DefaultSettings.php the variable $wgLocalTZoffset = NULL has to be (auskommentiert) and the variable $wgLocalTZoffset = date("Z") / 60; has to be set instead of.

[bearbeiten] Poss. change notification

http://www.mediawiki.org/wiki/New_User_Email_Notification

[bearbeiten] E-mail

Data file extensions/DefaultSettings.php contains a setting with reference to e-mail-server. Adopt in LocalSetting.php.

[bearbeiten] Install Plugins

As described in SOP Pluginverwaltung, currently only in German.

Persönliche Werkzeuge
Navigation