Moodle Question Type Installation

From WeBWorK_wiki
Revision as of 14:02, 14 July 2009 by Net-buoy (talk | contribs)
Jump to navigation Jump to search

Installing the Moodle Question Type is designed to be easy. Assuming you already have the prerequisites this should take about 5 minutes.

While wwmqt appears to install using the information below, once installed it apparently does not function properly in Moodle 1.9.2+. When one attempts to add a webworks question Moodle responds with:

Need to pass courseid or cmid to this script

As of July 14 it appears that the wwmqt is at Revision 31 and that no changes have been made to the SVN to address this issue. Additionally, it should be noted that the issue of whether WWMQT can import question banks (as opposed to requiring an instructor to cut and paste each question into the Moodle question bank) seems to at present negative, which arguably renders this integration much less economical than it might otherwise be. Net-buoy 14:02, 14 July 2009 (EDT)

Prerequisites

  • Moodle 1.9 -- http://moodle.org
  • PHP5 -- Depending on your system there are many simple ways to install PHP.
  • PHP soap extensions -- Can be installed as a package out of debian or out of an rpm, or flagged when PHP is built from source.
  • WeBWorK Question Server [optional] -- Find installation instructions here[1].

Installation

To start you should have administrator access to the Moodle site.

1. Check out a copy of the WeBWorK Moodle Question Type by running the following from a terminal:

   svn co http://question2.webwork.rochester.edu/svn/wwmqt/trunk wwmqt

This will place a folder named wwmqt in your current working directory.

2. Move or copy the webwork directory from wwmqt/moodle/question/type/ into yourmoodle/question/type/ on your moodle server. You should now have a directory yourmoodle/question/type/webwork.

3. (Optional) Edit the config.php file in yourmoodle/question/type/webwork. The second part of the define statement should point to your own server where the WeBWorK Question Server is installed. For example: http://myserver.edu/problemserver_files/WSDL.wsdl.

4. Login to the Moodle site and click on Notifications in the Site Administration panel on the left. The database tables should now be created.

Thats it your done! Everything can be tested by trying to load and preview a WeBWorK question.

Look at the Moodle Question Type FAQ if you have any questions.