Installation guide

Uit Harold Prins

Ga naar: navigatie, zoeken

Step A : Installing and Configuring the Joomla plugin.

Download and install the Joomla plugin

  1. Install zip file using standard Joomla install
  2. Publish the plugin and configure the plugin as below. Set
    1. Directory path: example '/var/www/vhosts/domein.nl/httpdocs/wiki/'
    2. Cookie domain (1.1): empty, installing in subdomain then '.domain.nl'
    3. Cookie prefix: the same as the mediawiki Prefix (the default is the mediawiki database name + prefix (mw_))
    4. Cookie path: example '/'
  3. Change the code in file joomla root/plugins/user/mediawikilogin.php on line 35
    1. Line 35: $salt = 'Give some variable name here'; //CHANGE THE VARIABLE NAME TO $salt= 'wiki' or something

Step B : Installing and Configuring the MediaWiki Extension.

Download the extensions from Mediawiki extension

  1. First download the MediaWiki extension authjoomla2.php
  2. To install the mediawiki extension, copy and paste the authjoomla2.php file to wikiroot/extensions/AuthJoomla2/authJoomla2.php
  3. Next, download localsettings.php from Mediawiki extension
  4. Open localsettings.php and copy all the code [Press Ctrl-C] and paste[Press Ctrl-V] it into the end of your wiki/LocalSettings.php file
  5. Now, make these changes in your MediaWiki LocalSettings.php:
    1. $wgAuthJoomla_security_key = 'CHANGE THIS VARIABLE NAME'; //The variable should have the same value of $salt in Line 35 in Step A -> Step 3
    2. $wgAuthJoomla_UseExtDatabase = true;
    3. Change the database settings
    4. $wgAuthJoomla_domain = 'http://www.domain.nl/'; //location of your Joomla index.php file
  6. Save LocalSettings.php
  • Warning: This file is not build for a subdomain. The plugin works, but the auto return after login and logout fails. I work on a modified version.
Persoonlijke instellingen
home