I've written up the following document detailing exactly what needs to be done to create a course at UofR. NOTE that our system is set up slightly differently than most others, so this procedure is not universal. Also, I have created blankCourse and blankLibCourse as templates on webwork2. I think we should consider including these in the standard distribution, but they are currently not included. This procedure works fine on webwork2 at the U of R, but it might or might not apply to anyone else's setup.
Setting up a new course -- step by step.
Assume course name theCourse, group GROUP
-- If necessary, edit /etc/group to add a new group, and run: sudo
/usr/local/sbin/apachectl restart (you might need to log out and log in again)
-- In /ww/webwork/courses1: mkdir theCourse; mkdir theCoursepriv; chmod 770
theCourse*; chgrp GROUP theCourse*
-- In /ww/webwork/courses: ln -s ../courses1/theCourse theCourse; ln -s
../courses1/theCoursepriv theCoursepriv
-- In /ww/htdocs/tmp1: mkdir theCourse; mkdir theCoursepriv; chmod 777
theCourse*
-- In /ww/webwork/courses/theCourse: cp -r /ww/webwork/courses/blankCourse/* .
-- You can also use blankLibCourse, which has the entire problem library
-- In /ww/webwork/courses/theCourse: ./course_webwork_setup.pl
-- Hit enter
-- Type y
-- Type w
-- Type y
-- Type /theCourse/
-- Type /cgi-bin/system/
-- Type theCourse
-- Type GROUP
-- Type y
-- Type y
-- Type y
-- Type y
-- (Still in course directory): chmod g+xs templates
-- cd templates; mv blankCourse.lst theCourse.lst
-- Edit theCourse.lst as necessary (probably just adding the professor; it's
best to add students through the web)
-- In /ww/webwork/courses/theCourse: import_classlist-database.pl theCourse
theCourse.lst
--Type y
-- setProfPermissions.pl theCourse loginName
-- make the following changes to webworkCourse.ph (it's best to comment out the
old variables rather than deleting them)
-- change $Global::feedbackAddress as appropriate (you'll need to
uncomment it)
-- you might also change other settings in this section, if needed
-- $courseTempDirectory = '/ww/htdocs/tmp1/theCourse/';
-- $courseTempURL = '/tmp1/theCourse/';
-- In /ww/htdocs: ln -s /ww/webwork/courses/theCourse/html/ theCourse
-- Copy any necessary problems from WW_Prob_Lib2 or blankLibCourse
-- Log on to the course from the web
-- CHANGE YOUR PASSWORD!
-- Go to the professor's page and build problem sets
-- Starting from the copying step (cp -r ...), repeat the above for
theCoursepriv with the following changes:
-- During the setup script, course URL should be /courses/theCoursepriv
-- You should create the link in /ww/htdocs/courses, not /ww/htdocs
NOTES:
-- Some of the setup script defaults do not match what is given here.
This is because our system is set up a little differently than most
others. Use the values given here.
-- Someone should occasionally bring the problems in blankLibCourse up
to date...