Host Moodle 2 in Windows Azure

Standard

Over the past few weeks Microsoft have released the code to implement Moodle and Moodle 2 on Windows Azure saving you the cost of hardware, redundancy and data protection.

4265.moodle_azure_543A8D8A

Using Windows Azure to host the website and SQL Azure for the database you now have another reason to move to the cloud and keep saving on it.

You can download the instructions on how to do is from Codeplex.

Moodle: http://moodleazure.codeplex.com/

Moodle 2: http://moodle2azure.codeplex.com

Note: These are in beta and should be treat as beta.  Ensure you read all the documentation on how it works before making a decision on implementing it as a beta and production.

Chapter 6: Configuring Moodle 2.0 with Kerberos Authentication

Standard

Kerberos was developed by MIT in the 80s to help with network security in a large network and has been used since Windows Server 2000 to increase security for users logging onto their domain computer.

By using this ticketing solution your authentication is securer than basic or NTLM  keeping your Moodle users securer from network intrusion or password sniffer tools.

In this chapter we look into why implementing Kerberos with Moodle is important and also the step by step guide on how to implement it on a Microsoft based Moodle.

If you are interested in this chapter it can be purchased with the rest of the ebook in PDF, epub and mobil version for the BFC Networks shop.

Book-Front-Cover

If you are interested in this chapter it can be purchased with the rest of the ebook in PDF, epub and mobil version for the BFC Networks shop.

http://www.bfcnetworks.com/products-page/moodle/ebook-moodle-2-with-microsoft-technologies/

Chapter 4 & 5: Configuring Moodle 2.0 with Active Directory and LDAP Attributes

Standard

Configuring Moodle with Active Directory can be very simple but it is important that it is also done to best practice with tight security.  During chapter 4 we discuss how to connect Moodle to Active Directory with a dedicated user that you have created and given delegated rights to.  This user only has permission to what it requires instead of giving them administrator access to the whole domain.

In chapter 5 it looks at the different settings required to link Moodle profile settings to Active Directory user attributes.  This chapter is in 3 sections, the first in about the different attributes in Moodle and Active Directory and how they can be linked.  The second part of the chapter looks at configuring Moodle and Active Directory to link the different attributes while the final section looks at how you can to write back user changes in their Moodle profile back to Active Directory

If you are interested in this chapter it can be purchased with the rest of the ebook in PDF, epub and mobil version for the BFC Networks shop.

Book-Front-Cover

If you are interested in this chapter it can be purchased with the rest of the ebook in PDF, epub and mobil version for the BFC Networks shop.

http://www.bfcnetworks.com/products-page/moodle/ebook-moodle-2-with-microsoft-technologies/

eBook:Moodle 2.0 with Microsoft Technologies

Standard

A month or two ago I thought about all the content there is currently available on the internet regarding Moodle 2.0 and Microsoft technologies.

There this isn’t very much so I’ve spent the last month or two writing and writing and writing putting together an ebook together looking at 7 different areas.  The book is available in 3 different formats PDF, epub and mobile.

You can purchase the book from the BFC Networks Shop at £15.00 by clicking on the image below.

FrontPagePreview

http://www.bfcnetworks.com/products-page/moodle/ebook-moodle-2-with-microsoft-technologies/

  • Chapter 1: Install Moodle 2.0 on Windows Server, SQL Server Express, IIS and PHP
  • Chapter 2: Install Moodle 2.0 on 2 web front ends, SQL Server Cluster with IIS and PHP
  • Chapter 3: Configuring mail in Moodle 2.0 with Microsoft Exchange
  • Chapter 4: Configuring Moodle 2.0 authentication with Active Directory
  • Chapter 5: Configuring Active Directory Attributes for Moodle users
  • Chapter 6: Configuring Kerberos authentication for Moodle 2.0
  • Chapter 7: Configuring Single Sign On with Moodle 2.0

Can you view the content of the book by clicking here

Install Moodle 2 on Microsoft SQL Server, Windows Server 2008 R2 and IIS

Standard

Over the past year I have write a few how to whitepapers on implementing the open source product Moodle onto Microsoft Technologies.

In recent months Moodle 2 has been released and a new whitepapers is now available on how to install the product on:

  • Windows Server 2008 R2
  • Microsoft SQL Server 2008 R2
  • IIS 7.5
  • PHP 5.3.4
  • using Microsoft SQL Server drivers for PHP 2.0

image

Here are other Moodle whitepapers available for download.

Integrating SharePoint and Moodle: But Why….?

Standard

I got a tweet from @moodlenews asking why would I want the documents I have in Moodle stored in a SharePoint document library.  Well it’s a very good question so I thought the fourth and final post on Integrating SharePoint and Moodle would be why we want to do this.

Edit the File

Once you have uploaded your file into Moodle the file is stored in a folder on the Moodle server.  This is great but it doesn’t allow you to edit the file.  By storing the file in a SharePoint document library you can easily find the file, change it and not have to worry about re-uploading the file again.

Versioning

SharePoint allows you to keep versions of the document you are editing.  Over the academic years you may change the file several times, add and delete content but one day you’ll want to go back and view something you deleted.  SharePoint will allow you to revert back or just browse previous version.

image

If you are working as a team on a set of files for a module you can now upload them in Moodle and work together with them on SharePoint, tracking each others changes.

Search

As the files are now being stored in SharePoint, SharePoint will search/crawl the files for the file name and content inside the document.  Using SharePoint as your central place to search you all your academic resources is a great learning tool for the learner to find what they are looking for.

Office Web Apps

Microsoft have been working hard on their Office Web Applications available for Word, Excel, PowerPoint and OneNote.  SharePoint 2010 also allows documents to be opened in the browser using the web apps.  The teacher can now open the document they want to change in the browser and simply make their quick change and save it back to the site with out having to upload and download again.

image

Check-In/Check-Out

All these are great but you wouldn’t want your students to see the changes to document they are using in a course while you making changes.  You can check the files out to make changes, make changes over a few minutes, hours, months but until you check the file back in the users will see the original file you want them to see until you are ready to release those changes.

SharePoint 2010 Workspaces

SharePoint Workspaces allows you to download a document library and make changes from a machine that doesn’t have access to that SharePoint site at the time.  In other words you can now make changes to your Moodle course documents with out needing an internet connection.

image

Workflows

If you have a process for releasing learning resources to students, you can take advantage of the approval process in SharePoint that will allow another colleague to check the files before you release them to all students.

View the how to guides on Integrating Moodle and SharePoint: Storing Moodle Documents in SharePoint Document Libraries

Integrating SharePoint and Moodle: Storing Moodle Docs in SharePoint: Part 1
Integrating SharePoint and Moodle: Storing Moodle Docs in SharePoint: Part 2
Integrating SharePoint and Moodle: Storing Moodle Docs in SharePoint: Part 3

Integrating SharePoint and Moodle: Storing Moodle Docs in SharePoint: Part 3

Standard

This blog post is part 1 of a series of 3 on how to integrate SharePoint and Moodle better.

Part 1: How to part 1
Part 2: How to part 2
Part 3: Recommended Changes (this post)

 

Checks

You if now navigate to the Document Library we created earlier in Internet Explorer you will see that there are folders in there.  This is where you documents will now be uploaded.

image_thumb7

Recommendations

Moodle Cache

By default Moodle stores all its caching in the Moodle data location, so having completed this process you will find that a file is allows being written to as users logging onto the Moodle website.  Moodle can also write this cache into the Moodle database.  We are going to move the load off the SharePoint server and on top the database

To make this change log on to Moodle with an administrative user.  Using the navigation down the left hand side click on Server and then Session Handling.

image_thumb7[1]

When the page has loaded check ‘Use database for session information’.

image_thumb8

slasharguments

In most of my Moodle implementation I have found that images don’t load properly when they have been uploaded through the Moodle document upload process.  If I’m honest, I don’t know why this is but here is how to fix it.

Log onto Moodle with an administrative user.   Using the navigation down the left hand side click on Server and then HTTP.

image_thumb10

When the page has loaded uncheck ‘Use slash arguments’.

image_thumb9

Remove Folders

One of the views in SharePoint is the ability to show folders.  This can help the user not to look through the strange folder structure the Moodle creates itself.  e.g. folders are called with a numeric number.

To create a new view that doesn’t have folder, open the document library in SharePoint 2010 and click on Modify this View.

image_thumb1

Toward the bottom of the page, expand Folders and then check Show All Item without folders.

image_thumb5

You document library should now look like this.

image_thumb6

Integrating SharePoint and Moodle: Storing Moodle Docs in SharePoint: Part 2

Standard

This blog post is part 1 of a series of 3 on how to integrate SharePoint and Moodle better.

Part 1: How to part 1
Part 2: How to part 2 (this post)
Part 3: Recommended Changes

Enable Feature

For the Moodle OS to open a WebDAV enabled folder, the Desktop Experience Feature must be enabled.  Do this by adding this feature.

image_thumb1[1] 

Changes required to Moodle PHP files

I have copied the next step from the Integrating Moodle and SharePoint Better document produced by Microsoft which talks about how to integrate the product better should you be running it on a Windows Server using Apache.

Changes to Moodle PHP Files
There are two changes to make to Moodle PHP files. First, it’s important to prevent Moodle from
creating an administrative file called .htaccess that is not a valid SharePoint file. This file prevents
unauthorized access to the Moodle dataroot folder. Because we will use SharePoint Server to store
files, we will also use SharePoint’s authentication system, and thus can safely prevent the .htaccess
file from being created.
Second, we need to add our own file upload function. This function supports versioning by
preventing Moodle from simply overwriting old files when it uploads files to SharePoint.
Important If a PHP accelerator is present, it may be necessary to either temporarily turn off
the PHP accelerator, or force a purge of the accelerator’s cache, for the changes you make
to take effect. Procedures for temporarily disabling a PHP accelerator and for cache purging
vary by accelerator.
Prevent Moodle from creating an .htaccess file
1. Open the Moodle file setuplib.php from within server/moodle/lib.
2. Search for .htaccess, then comment out the following code:
















Note An alternative to editing the setuplib.php file is to create a SharePoint event handler

that intercepts the file create event and handles it appropriately.

Changes to config.php

Navigate to the root of your Moodle website through Windows Explorer.  Normally this would be c:inetpubwwwroot

Open config.php with notepad and search for docroot and change this location to the same URL we saved during the creation of the document library in SharePoint.  At the moment there are only 2 backlashes for the location.  You need to make this 3.

Navigate to c:inetpubwwwroot and open the file config.php in notepad.

Within the file search for $CFG->dataroot. Change this to sp2010sitesmoodlemoodledocs. Note that this is three backslashes.

image_thumb5[1]

Click to go to part 3 and recommendation of integrating Moodle and SharePoint

Integrating SharePoint and Moodle: Storing Moodle Docs in SharePoint: Part 1

Standard

Over the years the last year I have had many conversation on how to make SharePoint and Moodle better together and in recent posts I have how to install Moodle on a 32bit and how to install Moodle on 64bit operating systems.

In the current version of Moodle any documents, assignments or images are stored in a folder on the local server.  But why can’t we store these files in a SharePoint Document Library so any changes to these documents can be done easily with version controlling or using office web app.  Documents can also be searched and index allowing teachers and students to easily find resource they want.

Back in April Microsoft released a white on how to bring SharePoint and Moodle better together but this only if you are going to run the Moodle website using Apache.   On the page there are a few comments and unanswered questions on how to integrate Moodle running on IIS with SharePoint 2010.

Following the 3 whitepapers on implementing Moodle on 3 different types of Microsoft environments, I thought I would add how to do this through IIS and changing the same code as Microsoft have recommended for it to work.  The following instruction assume you have setup Moodle with IIS as per the whitepapers above.

This blog post is part 1 of a series of 3 on how to integrate SharePoint and Moodle better.

Part 1: How to part 1 (this post)
Part 2: How to part 2
Part 3: Recommended Changes

Accounts Required

SharePoint uses Active Directory to authenticate its users.  For Moodle to write documents to a SharePoint library it will require write access to that document library.  To do this create a Active Directory user called md_admin.  This user will be required to run the IIS website as well authenticated with SharePoint.

Create a new Active Directory user called md_admin.  This user will be required to run the IIS website and will also need permission to the SharePoint document library

SharePoint Configuration

Navigate to the location of where you want your Moodle documents to be stored in SharePoint.  Click on Site Actions and then on New Document Library.  Call your library MoodleDocs or something to your pleasing.  You need to make sure the md_admin user account has write access to this library to ensure the whole process works.

The upload process will move files through the upload process in Moodle to SharePoint through WebDav.  To find out the webdav URL of your site click on the Windows Explorer from the SharePoint Ribbon.

image_thumb

Copy the path of the folder location eg. sp2010sitesmoodlemoodledocs

image_thumb2

Later in the process we will be editing some of the Moodle PHP files and will need this URL.

Permissions to Moodle Root

The website will soon be changed for the md_admin user to run the web service but we also need to make sure the user has read permission of the Moodle PHP files.

Navigate to c:inetpub and right click on wwwroot and select properties

Select the Security tab and add the user md_admin with read permissions.

image_thumb8[1] 

Changes to IIS

As mentioned in the previous step we need to change the web service that runs the website.  This username will connect to SharePoint to upload the files, hence why you will need to use the md_admin username.

Open Internet Information Services Manager and expand the left navigation until you see default website.  Select the default website.  Using the right panel select Authentication which is in the IIS group

image_thumb3

You will notice that Anonymous Authentication is Enabled.  Click Edit… in the Actions panel.

image_thumb51

Click Set to change the anonymous user identity.

image_thumb6[1]

Fill in the details of the domain username you created earlier (md_admin).  You will need to put your domain name before this (domainmd_admin).

Click to go to part 2 of Integrating Moodle and SharePoint
Click to go to part 3 and recommendations of Integrating SharePoint and Moodle

Integrating SharePoint and Moodle: Moodle Webparts for SharePoint 2007

Standard

As a school we have decided to evaluate Moodle for a VLE for our school.  The main reasons we have done this is because of the course builder with built in quizs and SCORM builders.

image

I have to say they are very well built.  They are not page viewers like some companies make for their SharePoint webparts but these are written to look at the Moodle database and give you the information presented in a proper ASP webpart.  I’m very pleased to see this happen.

What caught my eye straight away and credit to the writer of this is the office presence by the names of the course.  One of the web parts is the moodle courses which lists all the available course and as you can see it (screen shot below) has the teachers name and then the office presence.  I think it is a shame that in Moodle itself doesn’t show this – because if the pupil was accessing the course, doing some work and they had an issue they could see the teacher straight away and ask them any questions.

image

In this post I’m going to mainly list the webparts with a screen shot – I’ve already started on another post to do with the install of them and I will also do a post on how to publish Moodle, SharePoint and the Moodle WebApps from the same URL through ISA.

Moodle: Welcome
image

Moodle messages is the built in online chat available in moodle.  Here you can see the message someone has sent you while you were away – the text they sent is ‘testing’

Moodle: Courses
image

In the Filter Option in this webpart you can select from My Course, Upcoming Courses and All Available Courses

Moodle: Online Users
image

Again this is more powerful in SharePoint than in Moodle as you can see their Office Presence as well.

Moodle: My Assignment
image

Moodle: Document Exchange
image

I do like this web part.  On the left you have your Moodle course, on the right hand side you have your SharePoint Document library.  This web part will allow you to transfer documents between both products.

There are some other webparts but they are very similar, depending on the user.

Here is the full list of the X Moodle WebParts

  • Moodle: Courses
  • Moodle: Document Exchange
  • Moodle: Messages
  • Moodle: My Assignment
  • Moodle: My Courses
  • Moodle: My Supervisied Assignements
  • Moodle: My Teaching Courses
  • Moodle: News and Announcements
  • Moodle: Online Colleagues
  • Moodle: Online Students
  • Moodle: Online Users
  • Moodle: Welcome

In the next few weeks I’ll do a post on how to install moodle and the webparts on a Windows System with SQL Server and also another post which I have been asked to do on how to publish it all through ISA on a single URL.