Hub administration: Difference between revisions
Tomaz Lasic (talk | contribs) No edit summary |
Helen Foster (talk | contribs) (rewording) |
||
(21 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Community hubs}} | ||
==Deciding to run a Hub== | ==Deciding to run a Hub== | ||
Line 8: | Line 8: | ||
* manage registered sites and their status | * manage registered sites and their status | ||
* maintain the quality of the listings through editing | * maintain the quality of the listings through editing | ||
=== Minimal Requirements === | |||
Below is a list of Minimal requirements for running a Moodle Community Hub. | |||
* MySQL - minimum version 5.0.25 | |||
* PHP 5.3.2 | |||
* Apache | |||
* ensure that the site you will be registering does not use any upper case letters (even though those are perfectly valid). ''EG: moodle.org/2012-Spring will not work!'' | |||
* ensure that the following php.ini variables are set to "On" | |||
** allow_url_fopen: This setting is required the hub to be able to register a site. If this option is not enabled, you will be given the [[error/local_hub/cannotregisternotavailablesite|cannotregisternotavailablesite]] error. Related tracker issue: https://tracker.moodle.org/browse/CONTRIB-3063 | |||
* mod_security in Apache version 1 and mod_security2 in Apache version 2 will return a 403 forbidden error when a URL that is not the local domain is passed as a get variable. mod_security on either the hub or client servers will block the completion of the client/hub registration process, even to Moodle.net, as within the registration process URL's are passed as get variables a number of times. An exception can be added to mod_security in Apache version 1 via a local .htacess file. However, this ability was removed in mod_security2. In mod_security2 the exception must be added to mod_security.conf of /conf.d. Related forum discussion: http://moodle.org/mod/forum/discuss.php?d=188933 | |||
==How the hub software works== | ==How the hub software works== | ||
The hub software is implemented as a separate "local" plugin designed to be added to a standard install of Moodle 2. | The hub software is implemented as a separate "local" plugin designed to be added to a standard install of Moodle 2.x. In this way the hub gets to use on all the features in the Moodle core API and benefits from maintenance of the core code. | ||
Once installed the whole site gets a new frontpage with a simple search box (see http://hub.moodle.org/ for example). | Once installed the whole site gets a new frontpage with a simple search box (see http://hub.moodle.org/ for example). | ||
Please don't add the hub capabilities to an existing Moodle site with real courses. Although it may work, there are some opportunities for GUI confusion and some unknowns when it comes to security, so please just avoid it. Moodle is free, so it's trivial to install another clean copy to build your hub with. | Please don't add the hub capabilities to an existing Moodle site with real courses. Although it may work, there are some opportunities for GUI confusion and some unknowns when it comes to security, so please just avoid it. Moodle is free, so it's trivial to install another clean copy to build your hub with. | ||
==How to set up a Moodle Hub server== | ==How to set up a Moodle Hub server== | ||
# Install Moodle | # Install the latest stable version of Moodle somewhere on a web server with a nice URL. | ||
# Download the latest hub plugin from | # Download the latest hub plugin from https://github.com/moodlehq/moodle-local_hub | ||
# Save the zip into the /local directory of Moodle and unzip, producing /local/hub | # Save the zip into the /local directory of Moodle and unzip, producing /local/hub | ||
# Visit the "Notifications" page in Moodle (/admin) to complete the upgrade and install the hub software. | # Visit the "Notifications" page in Moodle (/admin) to complete the upgrade and install the hub software. | ||
# Enable web services for the hub ('' | # Uncheck password policy (search 'passwordpolicy' in admin search) | ||
# Enable the XML-RPC protocol ('' | # Allow extended characters in usernames (search 'extendedusernamechars' in admin search) | ||
# Set up the SMTP ('' | # Enable web services for the hub (''Administration > Site Administration > Advanced features'') | ||
#Set up the recaptcha ('' | # Enable the XML-RPC protocol (''Administration > Site Administration > Plugins > Web services > Manage protocols'') | ||
# Set up your hub ('' | # Set up the SMTP (''Administration > Site Administration > Plugins > Message outputs > Email'') | ||
# Set up the recaptcha (''Administration > Site Administration > Plugins > Authentication > Manage authentication'') | |||
# Set up your hub (''Administration > Site Administration > Hub > Settings'') Supply a description, enable the hub, supply a hub password. | |||
Congratulations! You now have a working hub with no content! | Congratulations! You now have a working hub with no content! | ||
Line 36: | Line 49: | ||
Only sites that are registered with the hub are allowed to publish content there. | Only sites that are registered with the hub are allowed to publish content there. | ||
Sites register on the hub via '' | Sites register on the hub via ''Administration > Site administration > Server > Hubs''. | ||
==Hub registration== | ==Hub registration== | ||
You can also register your hub with the Moodle | You can also register your hub with the [http://hubdirectory.moodle.org Moodle Hub Directory], enabling people from all over the world to find your hub and search the courses within it. Your registration will be approved when your hub contains some courses. | ||
==Managing sites== | ==Managing sites== | ||
In | |||
* Prioritise a site | In ''Administration > Site administration > Hub > Manage sites'', you can: | ||
* Trust a site: when a site is trusted, any published course is | * Prioritise a site, so that it is listed higher than unprioritised sites on the hub. By default, sites are listed in alphabetical order. A prioritised site is always trusted. | ||
* Trust a site: when a site is trusted, any published course is immediately available | |||
* Delete a site: delete a site from the database. A message will be sent to the site administrator. | * Delete a site: delete a site from the database. A message will be sent to the site administrator. | ||
* Settings: you can change some information as the name, the description, the language... | * Settings: you can change some information as the name, the description, the language... | ||
* Make a site visible: only | * Make a site visible: only sites declared as visible appear on the the site list (currently the site list hasn't been implemented) | ||
==Managing courses== | ==Managing courses== | ||
In | |||
In ''Administration > Site administration > Hub > Manage courses'', you can: | |||
* Delete a course: delete a course from the database. | * Delete a course: delete a course from the database. | ||
* Settings: you can change some information as the name, the description, the language... | * Settings: you can change some information as the name, the description, the language... | ||
Line 58: | Line 72: | ||
== Important things about roles, users and web services == | == Important things about roles, users and web services == | ||
A hub server uses | |||
A hub server uses [[Web services]] a lot. For this reason it is important to understand the web services administration, and what happens if you change some roles/users/services. | |||
=== Roles === | === Roles === | ||
The hub server creates on the fly some roles that you should | The hub server creates on the fly some roles that you should ''never delete/modify'': | ||
* one role for the hub directory | * one role for the hub directory | ||
* one role for registered sites | * one role for registered sites | ||
Line 67: | Line 82: | ||
=== Users === | === Users === | ||
The hub server creates on the fly some users that you should | The hub server creates on the fly some users that you should ''never delete/modify'': | ||
* one user for the hub directory | * one user for the hub directory | ||
* one user for public access | * one user for public access | ||
Line 73: | Line 88: | ||
=== Services === | === Services === | ||
The hub creates during installation some web services that you should | The hub creates during installation some web services that you should ''never delete/modify'': | ||
* one service for Hub directory | * one service for Hub directory | ||
* one service for Registered sites | * one service for Registered sites | ||
Line 80: | Line 95: | ||
It also creates tokens on the fly. These tokens are not displayed on the token management list, so you cannot accidentally delete them. | It also creates tokens on the fly. These tokens are not displayed on the token management list, so you cannot accidentally delete them. | ||
==See also== | |||
*[[Site registration]] | |||
[[ | [[ja:ハブ管理]] |
Latest revision as of 13:05, 29 May 2013
Deciding to run a Hub
Running a hub server is not something you should undertake lightly.
As the hub administrator you are responsible for the content in the hub, and you need to put in place processes to:
- verify all the course content is clean (of porn or malicious javascript)
- manage registered sites and their status
- maintain the quality of the listings through editing
Minimal Requirements
Below is a list of Minimal requirements for running a Moodle Community Hub.
- MySQL - minimum version 5.0.25
- PHP 5.3.2
- Apache
- ensure that the site you will be registering does not use any upper case letters (even though those are perfectly valid). EG: moodle.org/2012-Spring will not work!
- ensure that the following php.ini variables are set to "On"
- allow_url_fopen: This setting is required the hub to be able to register a site. If this option is not enabled, you will be given the cannotregisternotavailablesite error. Related tracker issue: https://tracker.moodle.org/browse/CONTRIB-3063
- mod_security in Apache version 1 and mod_security2 in Apache version 2 will return a 403 forbidden error when a URL that is not the local domain is passed as a get variable. mod_security on either the hub or client servers will block the completion of the client/hub registration process, even to Moodle.net, as within the registration process URL's are passed as get variables a number of times. An exception can be added to mod_security in Apache version 1 via a local .htacess file. However, this ability was removed in mod_security2. In mod_security2 the exception must be added to mod_security.conf of /conf.d. Related forum discussion: http://moodle.org/mod/forum/discuss.php?d=188933
How the hub software works
The hub software is implemented as a separate "local" plugin designed to be added to a standard install of Moodle 2.x. In this way the hub gets to use on all the features in the Moodle core API and benefits from maintenance of the core code.
Once installed the whole site gets a new frontpage with a simple search box (see http://hub.moodle.org/ for example).
Please don't add the hub capabilities to an existing Moodle site with real courses. Although it may work, there are some opportunities for GUI confusion and some unknowns when it comes to security, so please just avoid it. Moodle is free, so it's trivial to install another clean copy to build your hub with.
How to set up a Moodle Hub server
- Install the latest stable version of Moodle somewhere on a web server with a nice URL.
- Download the latest hub plugin from https://github.com/moodlehq/moodle-local_hub
- Save the zip into the /local directory of Moodle and unzip, producing /local/hub
- Visit the "Notifications" page in Moodle (/admin) to complete the upgrade and install the hub software.
- Uncheck password policy (search 'passwordpolicy' in admin search)
- Allow extended characters in usernames (search 'extendedusernamechars' in admin search)
- Enable web services for the hub (Administration > Site Administration > Advanced features)
- Enable the XML-RPC protocol (Administration > Site Administration > Plugins > Web services > Manage protocols)
- Set up the SMTP (Administration > Site Administration > Plugins > Message outputs > Email)
- Set up the recaptcha (Administration > Site Administration > Plugins > Authentication > Manage authentication)
- Set up your hub (Administration > Site Administration > Hub > Settings) Supply a description, enable the hub, supply a hub password.
Congratulations! You now have a working hub with no content!
Site registration
Only sites that are registered with the hub are allowed to publish content there.
Sites register on the hub via Administration > Site administration > Server > Hubs.
Hub registration
You can also register your hub with the Moodle Hub Directory, enabling people from all over the world to find your hub and search the courses within it. Your registration will be approved when your hub contains some courses.
Managing sites
In Administration > Site administration > Hub > Manage sites, you can:
- Prioritise a site, so that it is listed higher than unprioritised sites on the hub. By default, sites are listed in alphabetical order. A prioritised site is always trusted.
- Trust a site: when a site is trusted, any published course is immediately available
- Delete a site: delete a site from the database. A message will be sent to the site administrator.
- Settings: you can change some information as the name, the description, the language...
- Make a site visible: only sites declared as visible appear on the the site list (currently the site list hasn't been implemented)
Managing courses
In Administration > Site administration > Hub > Manage courses, you can:
- Delete a course: delete a course from the database.
- Settings: you can change some information as the name, the description, the language...
- Make a course visible: decide if the course is displayed on search result
Important things about roles, users and web services
A hub server uses Web services a lot. For this reason it is important to understand the web services administration, and what happens if you change some roles/users/services.
Roles
The hub server creates on the fly some roles that you should never delete/modify:
- one role for the hub directory
- one role for registered sites
- one role for public sites
Users
The hub server creates on the fly some users that you should never delete/modify:
- one user for the hub directory
- one user for public access
- as many users as registered sites
Services
The hub creates during installation some web services that you should never delete/modify:
- one service for Hub directory
- one service for Registered sites
- one service for Public sites
It also creates tokens on the fly. These tokens are not displayed on the token management list, so you cannot accidentally delete them.