Installation guide
Uit Harold Prins
Step A : Installing and Configuring the Joomla plugin.
Download and install the Joomla plugin
- Install zip file using standard Joomla install
- Publish the plugin and configure the plugin as below. Set
- Directory path: example '/var/www/vhosts/domein.nl/httpdocs/wiki/'
- Cookie domain (1.1): empty, installing in subdomain then '.domain.nl'
- Cookie prefix: the same as the mediawiki Prefix (the default is the mediawiki database name + prefix (mw_))
- Cookie path: example '/'
- Change the code in file joomla root/plugins/user/mediawikilogin.php on line 35
- 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
- First download the MediaWiki extension authjoomla2.php
- To install the mediawiki extension, copy and paste the authjoomla2.php file to wikiroot/extensions/AuthJoomla2/authJoomla2.php
- Next, download localsettings.php from Mediawiki extension
- 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
- Now, make these changes in your MediaWiki LocalSettings.php:
- $wgAuthJoomla_security_key = 'CHANGE THIS VARIABLE NAME'; //The variable should have the same value of $salt in Line 35 in Step A -> Step 3
- $wgAuthJoomla_UseExtDatabase = true;
- Change the database settings
- $wgAuthJoomla_domain = 'http://www.domain.nl/'; //location of your Joomla index.php file
- 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.
