Problem: You want to clone and rename an existing WeBWorK 1.8 course.
In
my case this was the first step in moving a course that used GDBM as a
database to one that used mysql. I didn't want to destroy the original
course, hence the need for a clone.
We'll call the course myCourse1 and create myCourse2
- Copy the directory containing myCourse1 to myCourse2
cp -RPpi myCourse1 myCourse2
- The
tags RPpi insure that permissions are preserved and that the directory
is copied recursively (i.e. the subfolders are created and duplicated)
- In
myCourse2/html/index.html there are two references to myCourse1 which need to be changed to myCourse2 They are in the HTML code operating the "login" button on the index page. - In
myCourse2/webworkcourse.ph there are two references to myCourse1 which must be changed to myCourse2 - In the directory
myCourse2/DATA/ changemyCourse1_classlist_DB to myCourse2_classlist_DB andmyCourse1_webwork_DB to myCourse2_webwork_DB
- In the directory
myCourse2/DATA/.auth changemyCourse1_password_DB to myCourse2_password_DB andmyCourse1_permissions_DB to myCourse2_permissions_DB
- Finally you need to create a link to the new course html directory. For example:
ln -s /ww/webwork/courses/myCourse2/html /ww/htdocs/myCourse2
- allows me to reach the index page with the URL
http://webwork.math.rochester.edu/myCourse2
That seems to be about it. You can send feedback to me, Mike Gage gage@math.rochester.edu if you have difficulties or suggestions and I'll update these notes.
<| Post or View Comments |> |