Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Beginning Administration 2 FAQ.

Beginning Administration 2 FAQ: Difference between revisions

From MoodleDocs
No edit summary
 
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Beginning Administration 2 FAQ has grown out of the size restrictions that some browsers place on editing wiki pages. Please note there is a [[Beginning Administration FAQ]] page with more questions and answers.  
Beginning Administration 2 FAQ has grown out of the size restrictions that some browsers place on editing wiki pages. Please note there is [[Beginning Administration FAQ]] and [[Beginning Administration 3 FAQ]] pages with more questions and answers.  


The answers to most questions here relate specifically to Moodle 1.9.x.  Of course some of these answers will apply to earlier versions (e.g. 1.7 and 1.8).   We will not mention Moodle 2.0, which is due for release some time in late 2010.
The answers to most questions here relate specifically to Moodle 1.9.x.  Of course some of these answers will apply to earlier versions (e.g. 1.7 and 1.8). Many of the responses here may also work on Moodle v2.x, but not all, so be careful if you want to apply them to Moodle 2.x.  


This is an accumulation of information from Forums and other Moodle documentation to save you time in finding things out. Thanks to a lot of people who have been contributing without realizing it.
This is an accumulation of information from Forums and other Moodle documentation to save you time in finding things out. Thanks to a lot of people who have been contributing without realizing it.
 
 
----
<onlyinclude>
 


==I locked myself out of the Administrator role. What do I do?==
==I locked myself out of the Administrator role. What do I do?==


If all else fails download the [http://cvs.moodle.org/contrib/tools/adminfix/ adminfix.php script]. The instructions are in the comments at the top of the file. Note, that this is a big hammer and should only be used if you are truly stuck.  
If all else fails download the [http://cvs.moodle.org/contrib/tools/adminfix/ adminfix.php script]. The instructions are in the comments at the top of the file. Note, that this is a big hammer and should only be used if you are truly stuck.  
==I just restored a course to the Front Page Site files and now I am having serious trouble with the site==
There are a number of issues here. Firstly, the Site files link in the Administrator's block is an open folder that anyone can access. Putting anything in there can expose is to anyone who wants to look.
[[Image:Restorecmf01.gif|200px|thumb|left|Course Restore options]]
Restoring Courses needs be done in the appropriate area. From an Administrator's point of view, it is better to have a single restoration point, a dummy course you can use to restore Courses within. It also allow the Administrator to use a single point from which elements or even whole courses can be exported throughout the whole Moodle.
Moodle provides you with a process that allows you to select where you want Courses to be restored to and how you want them restored, so the dummy course is a practicable solution, and it affords a modicum of consistency within the site.
This is not a problem for Teachers or Course Creators, they can Backup and Restore only in those pages that recognize them as having a Role greater than an Authenticated User or Student.
==I am getting a log error message "File does not exist: /var/www/html/favicon.ico" and users cannot get past the login page.==
This appears to only happening with IEx. There seems to be a flaw somewhere in IE but so far no-one has been able to pinpoint it. There are any number of guesses, an some speculation, but it is frustrating. The one recommended solution seems to be to move away from IE, use anything else.
==I have lost all my courses in one category and I am getting the error message "Table './moodle/mdl_course' is marked as crashed and should be repaired"==
Occasionally, Windows and MySQL seem to not want to do the right thing, and a table can become corrupted. The best way out is to use the phpMyAdmin interface and work directly with the table itself. Go to '''Administration > Server > Database''' and in the left hand column, select the mdl_course table.
From the tabbed workspace, in the main panel, select the SQL tab and replace the default "SELECT ... " statement with
  REPAIR TABLE mdl_course
Then click the "Go" button on the right. This solution can be applied to any table in the database.
Sometimes, you will be unable to log in, but instead get the error message:
  "Session Replace: Table './moodle/mdl_sessions2' is marked as crashed and should be repaired"
While annoying, it is not unrecoverable. If you look at this document, [https://docs.moodle.org/en/How_to_check_your_database_for_corruption How to check your database for corruption], it explains how you can repair your database from the command line.


==We are changing our courses so want to clear all teachers from the course descriptions, but how?==
==We are changing our courses so want to clear all teachers from the course descriptions, but how?==
Line 66: Line 43:


==Some of our files are *.flv files, how can I add them?==
==Some of our files are *.flv files, how can I add them?==
Some things are easy, if you know how. Here is [http://instructor.metrotech.org/~mcampbell/moodle_add_flv.swf a tutorial] that will show you, visually. The sound is not great but it is actually easy. To make sure that the files work, enable the file type in the Administration > Modules > [https://docs.moodle.org/en/Filters Manage filters] page.
Some things are easy, if you know how. Here is [http://instructor.metrotech.org/~mcampbell/moodle_add_flv.swf a tutorial] that will show you, visually. The sound is not great but it is actually easy.
 
==I want to look at the styles applied by my selected theme, but how?==
Difficult with Internet Exlorer, but easy in Firefox. Using Firefox, download the "Firebug" add-on and install it. When installed, right click what you want to look at in detail, select '''Inspect Element''', it will appear in the Firebug viewing window.
 
==My default e-mail programme is Outlook Express. Do I need to configure it in some way to get e-mails from Moodle?==


No, an email from Moodle is like any other email. Perhaps more importantly is the email server on your site. PHP will send out the mail using its built-in mail server but some sites will need a specific Simple Mail Transfer Protocol (SMTP) server to relay the mail.  Moodle has settings to do this.
Here is yet another tutorial: [http://elearning.zhaw.ch/moodle/course/view.php?id=611 Online-videos on Moodle].


If you want a different mail program on your local computer, then there are many different ones to choose, such as Thunderbird.
To make sure that the files work, enable the file type in the Administration > Modules > [https://docs.moodle.org/en/Filters Manage filters] page.


==We are going to be charging for our courses, so how do I arrange payments online?==
==We are going to be charging for our courses, so how do I arrange payments online?==
Line 102: Line 74:
Yes you can. Since the introduction of Moodle 1.9, you can assign the titles of any role to what you want. At the bottom of the [[Course settings | Course Settings Page]] is the Role Renaming dialog.  
Yes you can. Since the introduction of Moodle 1.9, you can assign the titles of any role to what you want. At the bottom of the [[Course settings | Course Settings Page]] is the Role Renaming dialog.  


Just change the names of those roles you want to change and you can safely ignore the rest. To ensure your renaming of the Roles carries over into a backup, make sure you include User Data and it will be there when you Restore.
Just change the names of those roles you want to change and you can safely ignore the rest. To ensure your renaming of the Roles carries over into a backup, make sure you include User Data and it will be there when you Restore.
 
==How can I change the look of my Front Page to include a HTML block in the centre column?==
There are lots of different ways to do this but start at ''Administration > Front Page > [[Front Page settings]]''. [[Image:Frontpage04.gif|200px|thumb|right|The changing of Front Page settings.]]
[[Image:Moodlefrontpage.gif|200px|thumb|left|Images inside a HTML table in a label.]]
# Go to '''Front Page''' and change each setting to None, None, None None. This Front Page means '''before''' log in so what do you want your visitors to see?
# Go to '''Front page items when logged in''' and change each setting to what you want, or None, None, None, None. This displays '''after''' log in.
# Go to '''Include a topic section''' and click this ON, a tick appears in the check box.
# Go to '''Save Changes''' and when saved, return to the Front Page.
# Click the "Turn editing on" button and you should see two drop-down combo boxes and a number of icons.
# Select the "Add a resource" and take your pick of either a Label or a Web Page. (Hint: The label is perhaps a better option here, but suit yourself.
 
At this point you can edit the label or web page any way you want. You are taken to the WYSIWYG editor so you can include any text or image you like. When done, save it and return to your [https://docs.moodle.org/en/Front_Page Front Page] and the changes you made should appear.
 
You can also make the [https://docs.moodle.org/en/Blocks_administration blocks] used on the Front Page position themselves on the left or the right and have a HTML label taking up the rest of the page. This is a two column option.
 
You can also have a single column option by deleting or hiding all your blocks and just use the HTML block.
 
You are not limited here either, if you want a message for welcoming people and still show the default Front Page or anything else, then the list of items in the '''Front Page''' and '''Front page items when logged in''' are accessible.
 
Experiment with different configurations or options, you might hit on one that is spectacular, or more likely, meets your needs better than any other option.
 
==I want to use our own logo on our Moodle, how can I do that?==
This is actually simple, but it requires a bit of planning. You will need to create the correct size logos, then determine the location and px (pixel) size of the Moodle logos used in your theme(s), then replace the old with the new in the Moodle file structure. 
 
Firstly, you should know what theme(s) are used in your site and look at the image properties of the logos used in those themes.  One way is to right click on the logo image and select properties.  In the Formal White Moodle theme,  on the front page, the header logo property shows http://demo.moodle.org/theme/formal_white/logo.jpg , a 400 px (wide) by 100 px (high) image.  On the course page the header logo property shows http://demo.moodle.org/theme/formal_white/logo_small.jpg and it is a 200 px by 50 px image. There is also a logo in the footer http://demo.moodle.org/pix/moodlelogo.gif  The size and file location depends upon the theme properties, different themes are, well, different.
 
The height of these files is VERY IMPORTANT. We recommend creating your logo images so they match the pixel width and height of the existing logo files. 
 
Secondly, place those files in the correct location in your Moodle file structure.  Use the path location as a clue. The easiest method is to rename your logo files to those used by the theme and copy them to the new location..  For example in the Formal White theme header, call your files logo.jpg and logo_small.jpg. Copy these files to /theme/formal_white/ folder. Did you notice the Formal White theme footer logo is located at http://demo.moodle.org/pix/moodlelogo.gif and has an html link to moodle.org?
 
Alternatively you can edit the theme's "header.html" or "footer.html" file. In the "header.html, find the php code
:<img src="<?php echo $CFG->themewww.'/'.current_theme() ?>/pix/big_logo.gif" width="300"
::height="100" alt="mycompany" title="mycompany" id="logo" />
 
and a few lines later:
 
:<img src="<?php echo $CFG->themewww.'/'.current_theme() ?>/pix/small_logo.gif" width="210"
::height="70" alt="mycompany" title="mycompany" id="logo" />
 
It is '''highly recommended''' that you change only the file name, not anything else.
 
:Essentially you are creating a new theme by replacing the name of the image file that is your custom logo. If you are editing a standard Moodle's code, it is strongly recommended you first copy that theme (its folder) to your own theme folder.  When you upgrade Moodle, the standard Moodle Themes may change and all your work will be lost.
 
There is, of course, a much quicker solution, just use the standard logo theme where you can upload your own logo to site files rather than having to ftp and edit code. You can always change the rest of the theme by adding in colour and such.
 
==Theme I want to use does not have a logo on it, how can I add my logo?==
Create the logo file you want to use in the sizes mentioned above, usually in a gif format. Have two logos, one about 70% the size of the other. Again, using the "header.html" file, look for the line:
 
  <nowiki><h1 class="headermain"><?php echo $heading ?></h1></nowiki>
 
and replace it with: 
 
  <nowiki><h1 class="headermain"><img src="<?php echo $CFG->themewww .'/'. current_theme() ?>/pix/logo.gif" alt="" /><?php echo $heading ?></h1></nowiki>
 
Remember this line appears twice, one for the front page then one for subsequent pages. You can limit the size of the file by adding, in the second line:
 
  <nowiki><h1 class="headermain"><img src="<?php echo $CFG->themewww .'/'. current_theme() ?>/pix/small_logo.gif" alt="" /><?php echo $heading ?></h1></nowiki>
 
This works fine with "ocean blue" theme. (Thanks to DeWayne Demland and [[User:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] for suggesting this)
 
==I have these cool icons I want to use rather than those supplied. How can I change them?==
Do it very carefully. It is a good idea to create a custom theme by copying the theme you like, then changing the icons in it.  Remember, if one theme has the icons you want to use in another theme, copy them.  CAUTION: Make sure you know the correct icon to change and have the right size and correct image.  150 x 150 pixel images do not make good icons.


It is a good idea to understand themes.  With CSS some themes have no special icons defined in their folders.  They will or can default to the moodle/pix folder for icons it can not find in the theme.   


For example: I use the CoolestMoodle theme based on my copy of the Chameleon theme. I want to use a standard black "delete" icon, with a yellow background.  I know a black delete icon is located in the pix/t folder as delete.gif.  I copy that image and with an image editor put yellow around the X.  I place my new image in the theme/CoolestMoodle/t folder as "delete.gif". 


The quick way is to change the image in the pix/t folder or the image in the Chameleon theme. The problem is that when you upgrade your site, it will copy over those files. It will not copy over a custom theme folder and its files.
==After changing things, I get this truncated character () in my Moodle==
This symbol is called a BOM.  There are two main causes of a BOM, one is from Windows Notepad. Notepad uses an older standard, ANSI, encoding method for its files, and while this is OK inside Windows, it is no longer a standard. Changing HTML or PHP code in Notepad is not a recommended practice. This can be easily fixed by using a text editor like TextPad, NotePad++ or Crimson Editor, all of which can have their default file type set to uft-8. The other cause of a BOM is using the wrong, or a mixed, character set and collation inside your database, eg.some tables in latin charset and others in UFT-8. This is also easily fixed by going to the database and entering the SQL statement found at this [http://moodle.org/mod/forum/post.php?reply=615253 discussion thread].
     


==How can we use a secure server for our Moodle, a https://  ?==
==How can we use a secure server for our Moodle, a https://  ?==
Line 210: Line 120:
These settings should read "log_errors = On" and "log_errors_max_len = 0" Seems counterintuitive to make a larger number, 1024, smaller, but it only means that there is now no practicable limit to the length of the error log.
These settings should read "log_errors = On" and "log_errors_max_len = 0" Seems counterintuitive to make a larger number, 1024, smaller, but it only means that there is now no practicable limit to the length of the error log.


==My test Moodle won't start even after I run "Moodle Start.exe", the localhost changes to <nowiki>http://localhost/xampp/</nowiki>. ==
Basically your browser does not know where Moodle is located.  This could be any number of reasons.  Usually this is an issue with an apache configuration or with the browser address.
Browser address alternatives.  Try:
<nowiki>http://localhost/xampp/moodle</nowiki> or
<nowiki>http://localhost/moodle</nowiki>
In an XAMPP package installed from Apachefriends.org, Moodle should be installed in the htdocs folder along with a folder called XAMPP.  Edit the htdocs/index.htm file so that both a HTML link to the XAMPP and Moodle sites are shown. 


You could check or change the Apache httpd.conf file so that the web server links directly to Moodle when "Localhost" or the desktop's IP is typed by another machine on the local network.
Go to '''C:\Moodle\server\apache\conf'''  (or whatever your path may be)
Open '''httpd.conf''' file in your text editor.
DocumentRoot variable should read:
  DocumentRoot '"C:/Moodle/server/moodle"'  (Your path to the Moodle index.php file)
and the Directory
  <nowiki><Directory "C:/Moodle/server/moodle"></nowiki>  (Your path to the Moodle index.php file)
Make sure the paths specific are correct.
After that, check the '''moodle/config.php''' file which is located in your Directory path folder.
Look for the line
  $CFG->wwwroot  = <nowiki>'http://localhost'</nowiki>;
If the wwwroot variable reads anything else, then change it to read the same as above.
If none of these things work, then delete your Moodle and reinstall, most likely something has not installed properly.


==What is the difference between Groups and Groupings? How can I use them?==
==What is the difference between Groups and Groupings? How can I use them?==
Line 251: Line 137:
Go to the file course/edit_form.php and on line 117 (or close to it due to version issues) find the text
Go to the file course/edit_form.php and on line 117 (or close to it due to version issues) find the text
   for ($i=1; $i<=52; $i++) {
   for ($i=1; $i<=52; $i++) {
and change the 52 to 53.
and change the 52 to 53. you may also want to go to this question about [https://docs.moodle.org/en/Beginning_Administration_3_FAQ#We_need_to_limit_enrolments_to_specific_time_periods_some_that_are_more_than_365_days_allowable_in_the_course_settings.2C_how_can_we_do_that.3F extending time limits] on courses for a more elegant solution.


==We need to display courses in Category pages, but offer information about when the course is available or not, instructors and so on.==
==We need to display courses in Category pages, but offer information about when the course is available or not, instructors and so on.==
Line 275: Line 161:


==I keep deleting Users but they keep turning up in courses and on the site==
==I keep deleting Users but they keep turning up in courses and on the site==
This is usually a result of the backups people take of their courses. Often Teachers include all Users, so the Uusers remain listed in the backup after they are no longer part of a course. Of course, when the backup is restored, the Users listed in the backup are also restored. To avoid this, recommend to all Teachers that if they intend to back their course up, reset it first. This discards all user data and files and will not be backed up. Alternatively, the backup process allows for the removal of all User files  
This is usually a result of the backups people take of their courses. Often Teachers include all Users, so the Users remain listed in the backup after they are no longer part of a course. Of course, when the backup is restored, the Users listed in the backup are also restored. To avoid this, recommend to all Teachers that if they intend to back their course up, reset it first. This discards all user data and files and will not be backed up. Alternatively, the backup process allows for the removal of all User files  


The same rules apply to site backup files. If you intend to back your site up, make sure that only the people who are supposed to be there are listed. Usually a Teacher will transfer or leave, or an Administrator will move on, but they can remain on the Moodle if not deliberately removed from their former roles before the backup is taken or restored.
The same rules apply to site backup files. If you intend to back your site up, make sure that only the people who are supposed to be there are listed. Usually a Teacher will transfer or leave, or an Administrator will move on, but they can remain on the Moodle if not deliberately removed from their former roles before the backup is taken or restored. Leaving these people on your system creates several security breaches, so plan for redundancies such as these.


==We have a VPN where some branches have limited bandwidth. How can I transfer large video files without bringing the service to a standstill?==
==We have a VPN where some branches have limited bandwidth. How can I transfer large video files without bringing the service to a standstill?==
Each location can have a proxy server that caches items such as the videos locally as they're viewed. In this way you do not have to construct multiple Moodles, or worry about syncing them with a central server, or even interfering with other services.  
Each location can have a proxy server that caches items such as the videos locally as they're viewed. In this way you do not have to construct multiple Moodles, or worry about syncing them with a central server, or even interfering with other services.
 


==I am getting a blank page under the header 'Import Course Data' when I am trying to restore a course.==
==I am getting a blank page under the header 'Import Course Data' when I am trying to restore a course.==
There are a number of options here, starting with the error messages. Moodle offers two different debugging options in Administration ► Server ► Debugging - the 'debug messages' dropdown and the 'display debug messages' tick box. Put the dropdown level to 'ALL' and also enable the tick box. These will display any error messages. For more information if you still get a blank screen on the import page, check your Apache error_log for any error messages there.
There are a number of options here, starting with the error messages. Moodle offers two different debugging options in Administration ► Server ► Debugging - the 'debug messages' dropdown and the 'display debug messages' tick box. Put the dropdown level to 'ALL' and also enable the tick box. These will display any error messages. For more information if you still get a blank screen on the import page, check your Apache error_log for any error messages there.


   
==We are changing the name of the Moodle, so how can I change the URL easily?==
Changing the url for Moodle is simpler than it may seem, but it is exact.
# Back up your database - export to a text file.
# Manually enter the normal url <nowiki>http://www.yoursite.org/usualname/</nowiki>'''admin/replace.php''' adding the last part.
# On the replace page enter the new name say <nowiki>http://www.yoursite.org/usualname/</nowiki> to <nowiki>http://www.yoursite.org/newname/</nowiki> Click OK, and this should show a message that says "Rename sucessful"
#On the server change the Moodle folder name to what you want.
#Edit the config.php $CFG->wwwroot = <nowiki>'http://www.yoursite.org/newname/';</nowiki> and $CFG->dirroot = <nowiki>'/path/to/moodle/newname';</nowiki>
Thanks to Marlon Higgins and [[User:Howard Miller|Howard Miller]] for this question.
 
==We updated Moodle and restored some swf files, now they are blurry on the right, but why?==
Check sizes of the files. If the file is a little large, even as much as 1 pixel in both height and width, it changes how things are displayed. Smaller files create a different effect, but things just do not look right. Seems size does matter. 
 
==See also==
==See also==
*[[Beginning Administration FAQ|The first page of Beginning Administration FAQs]]
*[[Beginning Administration FAQ|Beginning Administration FAQs ]]
*[[Beginning Administration 3 FAQ|Beginning Administration FAQs - 3]]
*[[Beginning Administration 4 FAQ|Beginning Administration FAQs - 4]]
*[[Front_Page_FAQ|Front Page FAQ]]
*[[Installation FAQ]]
*[[Installation FAQ]]
*[[Administration FAQ]]
*[[Administration FAQ]]
*[[Xampp Installer FAQ]]
*[[:Category:Administrator | Index of all Administrator-related pages]]
*[[:Category:Administrator | Index of all Administrator-related pages]]


[[Category:FAQ]]
[[Category:FAQ]]

Latest revision as of 10:14, 25 April 2011

Beginning Administration 2 FAQ has grown out of the size restrictions that some browsers place on editing wiki pages. Please note there is Beginning Administration FAQ and Beginning Administration 3 FAQ pages with more questions and answers.

The answers to most questions here relate specifically to Moodle 1.9.x. Of course some of these answers will apply to earlier versions (e.g. 1.7 and 1.8). Many of the responses here may also work on Moodle v2.x, but not all, so be careful if you want to apply them to Moodle 2.x.

This is an accumulation of information from Forums and other Moodle documentation to save you time in finding things out. Thanks to a lot of people who have been contributing without realizing it.



I locked myself out of the Administrator role. What do I do?

If all else fails download the adminfix.php script. The instructions are in the comments at the top of the file. Note, that this is a big hammer and should only be used if you are truly stuck.

We are changing our courses so want to clear all teachers from the course descriptions, but how?

Sometimes you will want to remove Teachers from the Course Descriptions. To do this, go to Administration > Appearance > Course Managers and click the Teacher checkbox off. Teacher is the default setting, so unchecking the box will turn the element off. All Teachers will disappear from the Course Descriptions.

I have been asked to move an activity from one course to another course. How can I do that?

Firstly, the Teacher who is the teacher in both courses could use the Import link in the course administration block. This is similar to a selective backup without many of the downloading, uploading steps. A longer method would be for the teacher to make a selective backup in one course of only those items they want in the other course.

The only time you as the Site Administrator might be involved is if there are different Teachers for the two courses. They will not have permissions to see each other's course site administration block. The quickest way for you to do it is with the Import link.

Here is a review of how to do a selective backup. In the course, each resource or activity can be chosen to be included in a backup file. Go to the Course Administration block > Backup. A list of checkboxes is presented, uncheck anything you do not want to move. Select the Continue button to backup the files you want to move. Maybe give the file a special name.

Moodle allows you download and upload files into a course's file structure. A selective backup is a zip file. Some teachers like to download the their selective backup to their computer, then upload it to their other course, or send a copy of the backup to the other teacher who has requested it. The key point is that once the selective backup is in a Moodle folder that the user who is authorized to teach the second course can reach, they can start the restore procedure from there. Sometimes this might be the original course, sometimes the second course, or sometimes from a third course that both teachers have file access privileges.

Here is a brief review of the restore process for a selective backup file we made.

  1. Go to the folder that contains the backup file
  2. Select the Restore option.
  3. Moodle will say something like "You are about to start the restore process for: backup-myfiles-20090716-0813.zip"
  4. Select "Yes"
  5. You will see what is to be restored, click "Continue".
  6. The next page will give you a lot of control as to what to restore.
    1. From the drop down combo box select "Restore course : Existing course, add data to it" option. Or if you are in the course, then select current course, add data to it.
    2. There is other information about the course, you can ignore it because when you add data to an existing course, the existing course defaults like name are not going to change.
    3. At the bottom of this page consider if you want to include users (probably not), user files (probably not), course files (maybe) and site files (probably not) in the restore process.
    4. Select "Continue" -
  7. The next page will ask you which course to restore the backup to. You should see a list of all the course you teach or are have permissions to edit.
  8. Select the "Restore this course now" button.
  9. Moodle will give you the message "Restore completed successfully" , click "Continue".

At this point somebody may need to rearrange the newly installed/restored resources and activities. They will be in the same section as the original course.

Some of our files are *.flv files, how can I add them?

Some things are easy, if you know how. Here is a tutorial that will show you, visually. The sound is not great but it is actually easy.

Here is yet another tutorial: Online-videos on Moodle.

To make sure that the files work, enable the file type in the Administration > Modules > Manage filters page.

We are going to be charging for our courses, so how do I arrange payments online?

You can use a couple of methods to accept payments for courses, one being Paypal the other being Authorize.net Payment

The PayPal enrolment plugin allows you to easily set up paid courses which are linked to your PayPal account. You can set a default course fee which can be over-ridden by an individual course fee.

You can enable PayPal if you go to Administration > Courses > Enrolments - you can also set your default fee.

The Authorize.net Payment is a bit more complex, and seems to be set up to deal with larger numbers of transactions.

How can I select a specific group of students even if they are not in the same course?

Moodle allows for Administrators to be able to select groups of Users for specific actions. Go to Adminstration > Users > Accounts > Bulk User Actions and select what you want to do.

You can create a set of filters based on some criteria you have determined before you add people as Authenticated Users. You can select a group and then send them a message, or delete that group and so on.

I want to use reCaptcha to avoid being spammed and such

Moodle supports this. See the Site administration block > Users > Authentication > Manage authentication and scroll down to the end of the "Common Settings" for the public and private reCaptcha keys.

How to I enable reCaptchain the Security FAQ may offer more help. It is a simple process.

We do not have "Teachers" and "Students" we use "Mentors" and "Mentees" in some courses as well as "Facilitators" and "Clients" in others, can I change these names?

Renaming Roles

Yes you can. Since the introduction of Moodle 1.9, you can assign the titles of any role to what you want. At the bottom of the Course Settings Page is the Role Renaming dialog.

Just change the names of those roles you want to change and you can safely ignore the rest. To ensure your renaming of the Roles carries over into a backup, make sure you include User Data and it will be there when you Restore.


After changing things, I get this truncated character () in my Moodle

This symbol is called a BOM. There are two main causes of a BOM, one is from Windows Notepad. Notepad uses an older standard, ANSI, encoding method for its files, and while this is OK inside Windows, it is no longer a standard. Changing HTML or PHP code in Notepad is not a recommended practice. This can be easily fixed by using a text editor like TextPad, NotePad++ or Crimson Editor, all of which can have their default file type set to uft-8. The other cause of a BOM is using the wrong, or a mixed, character set and collation inside your database, eg.some tables in latin charset and others in UFT-8. This is also easily fixed by going to the database and entering the SQL statement found at this discussion thread.


How can we use a secure server for our Moodle, a https://  ?

In the config.php file change the variable $CFG->wwwroot include the 's' to read:

$CFG->wwwroot   = 'https://10.1.1.1';

We need to set up a HTTPS service for our Moodle, but not sure how.

This is a relatively simple operation, just changing a few settings. As long as they are done in the right order, there will be no problems. Security for your Moodle is always an important topic. There are a number of ways to secure your Moodle but one is the HTTPS protocol. If you enable HTTPS on your server you can then select the HTTPS option for logins. Do not change the logins first or you will be locked out of your own Moodle. HTTPS encrypt the User login data, making it difficult for anyone to find out user names and passwords. You can also encrypt cookies as well from v1.9 onwards. Order then is :

 Enable HTTPS on your server:

Go to > Administration > Security > HTTP security

 Enable "Use HTTPS for logins"
 Enable "Secure cookies only"

You may also want to provide some additional security by policy. Go to > Administration > Security > Site policies

 Enable "Password Policy"

Set the options that follow it, eg 10 characters with at least 1 number and 1 capital, whatever suits your site.

We need to run multiple instances of Moodle without duplicating base code

This is a considerably more technical question and is included here to show new users the flexibility that Moodle offers. The explanation is actually long and technically complex but Martin Langhoff has given us this answer in a discussion forum.


How can I force Users to enter their correct email at first log in?

If uploading Users by a csv file, and if you leave the email field blank when you enroll them, Moodle automatically takes the User directly to the profile and won't let them leave until they have entered an email address.

How do I prevent spammers from signing up / in?

Go to site administration>users >authentication and turn off (close the eye) of email based self registration. This means then that only people you give accounts to manually can access your site. If you HAVE to let users make accounts themselves with email then on the same page you can choose which email accounts to allow (like for your establishment domain name) and which email accounts to prohibit -often spammers use accounts like gmail for example.


I am getting an error message that says ""Enabling the PHP setting display_errors is not recommended on production sites because some error messages may reveal sensitive information about your server."

First go to > Administration > Server > PHP info and look for the setting "display_errors". It is probably reading "On".

If it is, open your text editor and navigate to open the "php.ini" file. Once there, look for the section marked as "; Error handling and logging ;" (at about line 250). Once you have that, look down a little further and you will see the setting "display_errors = On". Edit it to read "display_errors = Off". This setting will turn off the "display_errors" messages.

This setting should be off in a production site. Equally, just 10 lines further down you will find the setting "log_errors = Off" and 4 lines after that, "log_errors_max_len = 1024". If you are turning "display_errors" off, then you need to turn the logging capability of Moodle on. If you are turning the logging capability on, then you also need to take the default restriction on the maximum length of log files off. By changing these settings, you create an alternate to the live display of errors that some good hackers can take advantage of.

These settings should read "log_errors = On" and "log_errors_max_len = 0" Seems counterintuitive to make a larger number, 1024, smaller, but it only means that there is now no practicable limit to the length of the error log.


What is the difference between Groups and Groupings? How can I use them?

This is both an Administrator and Teacher task. Here is probably one on the more useful links - a discussion in the Moodle Forum - General Problems between Mary Cooch and a couple of other people about Groups v Groupings.

We want to allow automatic login without having to login as a guest for open access to test courses.

  1. in site > administration > users > permissions > user policies > autologin guests  =  check (click to tick)
  and in 
  2. authentication > manage authentication > guest login button = show.

This does present some security issues, though. You may be better off directing guests to a test area, specifically set up for public usage. Make sure all your other courses have sufficient enrollment protections.

There is 53 weeks this year, how can I extend a course that extra weekly topic for a weekly forum and blog?

Go to the file course/edit_form.php and on line 117 (or close to it due to version issues) find the text

  for ($i=1; $i<=52; $i++) {

and change the 52 to 53. you may also want to go to this question about extending time limits on courses for a more elegant solution.

We need to display courses in Category pages, but offer information about when the course is available or not, instructors and so on.

Using javascript:null().


You can use the mouseOver event in the Insert link dialog.

When creating a link in a Category page, add any information you need to the "Title" element. This is limited to 255 characters.

Alternatively, the link may go to a page you have specifically created for additional information about that course, rather than the course itself.

We want to change our authentication from a manual csv file to LDAP, quickly.

If you are comfortable directly modifying the database you can do this with a simple query. First backup your database and files. This should always be the first step when making direct changes to the database. It would probably be wise to do this change in maintenance mode during off-peak hours as well.

Then in the user table ie. mdl_user, set the `auth` column to 'ldap' instead of 'manual' with a query on the users you want to change.

Be cautious when changing the database directly - make sure you can undo what you have done. It is best to test any such change in your test Moodle before doing anything to your production site.

How can I create a Moodle on the Web

Moodle is a program that needs a web server to work. To create a Moodle on the Web, you will need to make, pay for, or borrow a web server that is on the Web. Moodle Partners can set up a Moodle for you on one of their servers or one that your purchase. Most web hosts can initially help you load Moodle but you will have to figure out the rest on your own. There are other special ways to set up a Moodle site that do not require the Web.

I keep deleting Users but they keep turning up in courses and on the site

This is usually a result of the backups people take of their courses. Often Teachers include all Users, so the Users remain listed in the backup after they are no longer part of a course. Of course, when the backup is restored, the Users listed in the backup are also restored. To avoid this, recommend to all Teachers that if they intend to back their course up, reset it first. This discards all user data and files and will not be backed up. Alternatively, the backup process allows for the removal of all User files

The same rules apply to site backup files. If you intend to back your site up, make sure that only the people who are supposed to be there are listed. Usually a Teacher will transfer or leave, or an Administrator will move on, but they can remain on the Moodle if not deliberately removed from their former roles before the backup is taken or restored. Leaving these people on your system creates several security breaches, so plan for redundancies such as these.

We have a VPN where some branches have limited bandwidth. How can I transfer large video files without bringing the service to a standstill?

Each location can have a proxy server that caches items such as the videos locally as they're viewed. In this way you do not have to construct multiple Moodles, or worry about syncing them with a central server, or even interfering with other services.

I am getting a blank page under the header 'Import Course Data' when I am trying to restore a course.

There are a number of options here, starting with the error messages. Moodle offers two different debugging options in Administration ► Server ► Debugging - the 'debug messages' dropdown and the 'display debug messages' tick box. Put the dropdown level to 'ALL' and also enable the tick box. These will display any error messages. For more information if you still get a blank screen on the import page, check your Apache error_log for any error messages there.

We are changing the name of the Moodle, so how can I change the URL easily?

Changing the url for Moodle is simpler than it may seem, but it is exact.

  1. Back up your database - export to a text file.
  2. Manually enter the normal url http://www.yoursite.org/usualname/admin/replace.php adding the last part.
  3. On the replace page enter the new name say http://www.yoursite.org/usualname/ to http://www.yoursite.org/newname/ Click OK, and this should show a message that says "Rename sucessful"
  4. On the server change the Moodle folder name to what you want.
  5. Edit the config.php $CFG->wwwroot = 'http://www.yoursite.org/newname/'; and $CFG->dirroot = '/path/to/moodle/newname';

Thanks to Marlon Higgins and Howard Miller for this question.

We updated Moodle and restored some swf files, now they are blurry on the right, but why?

Check sizes of the files. If the file is a little large, even as much as 1 pixel in both height and width, it changes how things are displayed. Smaller files create a different effect, but things just do not look right. Seems size does matter.

See also