Hi John,
First, your error message: Undefined subroutine &Apache::WeBWorK::handler called.
This happens when Apache couldn't compile Apache::WeBWorK or one of
it's dependancies (WeBWorK, WeBWorK::*). If you're getting this on some
requests and not others, it's probable that you need to restart your
apache server.
Apache maintains a compiled version of the loaded Perl modules in each
child process. These are only loaded when the child starts, not when
the module code is changed, so if you change the code (a CVS update,
for example), you need to restart the server. ("apache graceful" should
be sufficient.)
Second, your graph problem. The method we recommend for pointing apache
to course-specific temp files is as follows (from the wiki topic
ApacheSetup): # Provide access to course-specific resources: # AliasMatch /webwork2_courses/([^/]*)/(.*) /opt/webwork2/courses/$1/html/$2 <Directory /opt/webwork2/courses/*/html> Options FollowSymLinks AllowOverride None </Directory>
Unfortunately, the necessary change to $courseURLRoot (global.conf line 112) didn't make it into PR3 (just like the several directories we omitted!).
As of 2.0 PR3, the default was: my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
but since then, we've changed it to: my $courseURLRoot = "/webwork2_courses/$courseName";
HTH.
-sam
<| Post or View Comments |>
|