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: The complete path to your mediawiki folder, eg) /home1/spfschoo/public_html/MEDIAWIKI/
- Cookie domain: Leave Blank
- Cookie prefix: The name of your database with a a '_' on the end. Eg) if the database is named "spfschoo_mdw1" then put "spfschoo_mdw1_" in this section.
- Cookie path: I kept this as root "/".
- Directory path: The complete path to your mediawiki folder, eg) /home1/spfschoo/public_html/MEDIAWIKI/
- 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
Note: I had to create the AuthJoomla2 folder and put the file in there. It wouldn't work otherwise. - 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_MySQL_Host = 'localhost'; // Joomla MySQL Host Name.
$wgAuthJoomla_MySQL_Username = 'spfschoo_jml10'; // Joomla Site MySQL Username.
$wgAuthJoomla_MySQL_Password = 'GmZ5AOGhxL'; // Joomla Site MySQL Password.
$wgAuthJoomla_MySQL_Database = 'spfschoo_jml10'; // Joomla Site MySQL Database Name
Note: these can all be found in the 'configuration.php' file in the website folder. - $wgAuthJoomla_domain = 'http://www.YOURWEBSITE.com/'; //location of your Joomla index.php file
Note: Don't forget the tail '/' after '.com'
- Save LocalSettings.php
No comments:
Post a Comment