Professional Documents
Culture Documents
Before installation:
2. Sometimes, the Moodle admin cannot login into Moodle through Joomla using
external authentication because Moodle automatically sets the admin user's
authentication to "manual". As a safeguard, create a second Moodle
administrator account and set the authentication method to "external db".
to:
Tip: It’s best if both your Joomla and Moodle URLs use the same http
configuration.
For example both use www, or both don’t. Check this in
Joomla/configuration.php: $mosConfig_live_site
Moodle/config.php: $CFG->wwwroot
If you want Joomla to handle your user’s account registration, password change,
etc., use the following setup.
In Joomla Administration
1. Install the com_moodle component. If your Moodle is installed in a folder
named something other than "moodle", go to
Components>Moodle>Configuration and change the word "moodle" in the form
to your Moodle folder name.
Copy the link location from your Joomla menu (for example:
http://myjoomla.com/index.php?option=com_moologin&Itemid=36).
NOTE: Make sure you have no modules on the Moologin page. Some modules
contain scripts that may interfere with the scripts running on this page.
In Moodle Administration
Tip: If for some reason you end up locked out of your Moodle site, you can
override the Alternate Login URL:
In your Moodle/config.php file, add this line:
$CFG->alternateloginurl = '';
(where the '' are two single apostrophes). Now you can log into Moodle directly
and change any authentication settings. Later, you can delete that line from the
config.php file.
2. While still in Users Authentication, enable (click on the little eye) External
database and click on Settings. Enter your Joomla database information.
To get the DB Name, DB Username, and Password fields info, open your
Joomla/configuration.php file and find:
$mosConfig_db = '____';
$mosConfig_user = '_____';
$mosConfig_password = '_____';
If usernames and passwords are changed through Joomla, they will be updated
to Moodle on the next login.
http://moodle.org/mod/data/view.php?d=13&rid=973
If you want Moodle to handle your user’s account registration, password change,
etc., use the following setup.
In Joomla Administration
The first time a user logs into Joomla using the Moodleauth Form, their
username and password are retrieved from the Moodle database and their
Joomla account is created.
Copy the link location from your Joomla menu (for example:
http://myjoomla.com/index.php?option=com_moologin&Itemid=36).
NOTE: Make sure you have no modules on the Moologin page. Some modules
contain scripts that may interfere with the scripts running on this page.
In Moodle Administration
Tip: If for some reason you end up locked out of your Moodle site, you can
override the Alternate Login URL:
In your Moodle/config.php file, add this line:
$CFG->alternateloginurl = '';
(where the '' are two single apostrophes). Now you can log into Moodle directly
and change any authentication settings. Later, you can delete that line from the
config.php file.