Difference between revisions of "Moodle Question Type Installation"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
This will place a folder named ''wwmqt'' in your current working directory.
 
This will place a folder named ''wwmqt'' in your current working directory.
   
2. In the directory wwmqt/bin/setup you should find the perl script setup.pl and config.php.base. Execute setup.pl (remember, you made need to take additional steps to run this script on your system, such as invoking sudo, etc.) The script essentially configures an appropriate config.php file for you and then deletes prior copies of wwmqt files and then installs new copies of the files. If you do not wish to install a WeBWorK Question Server on your own machine you can use a communal server and addresses you can provide to the script in this case can be found at [[WeBWorK Question Server]]. You can accomplish the same tasks manually by reviewing the contents of the setup.pl script.
+
2. In the directory wwmqt/bin/setup you should find the perl script setup.pl and config.php.base. Execute setup.pl (remember, you made need to take additional steps to run this script on your system, such as invoking sudo, etc.) The script essentially configures an appropriate config.php file for you and then deletes prior copies of wwmqt files and then installs new copies of the files. If you do not wish to install a WeBWorK Question Server on your own machine you can use a communal server and addresses you can provide to the script in this case can be found at [[WeBWorK Question Server]].
  +
  +
If you wish, you can review the contents of the setup.pl script and address the few actions taken by it manually.
   
 
3. Login to the Moodle site and click on ''Notifications'' in the Site Administration panel on the left. The database tables should now be created.
 
3. Login to the Moodle site and click on ''Notifications'' in the Site Administration panel on the left. The database tables should now be created.

Revision as of 16:08, 15 July 2009

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

However, 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

A patch has been circulated that appears to address this problem, but there have been issues with the patch being applied and working. 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. Once questions regarding the patch have been resolved the pertinent file will be fixed in the SVN. In the interim please post to this thread in the webwork forum http://webwork.maa.org/moodle/mod/forum/discuss.php?d=6166 or to the Moodle Math Forum at http://moodle.org/mod/forum/discuss.php?d=89886 if you would like to partcipate in testing.

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, but that certainly does not mean that it won't be addressed in future. 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 at WeBWorK Question Server Installation.

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. In the directory wwmqt/bin/setup you should find the perl script setup.pl and config.php.base. Execute setup.pl (remember, you made need to take additional steps to run this script on your system, such as invoking sudo, etc.) The script essentially configures an appropriate config.php file for you and then deletes prior copies of wwmqt files and then installs new copies of the files. If you do not wish to install a WeBWorK Question Server on your own machine you can use a communal server and addresses you can provide to the script in this case can be found at WeBWorK Question Server.

If you wish, you can review the contents of the setup.pl script and address the few actions taken by it manually.

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

That's 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.