Failure loading localhost/webwork2

Failure loading localhost/webwork2

by Greg Warrington -
Number of replies: 2

I'm trying to install WeBWorK 2.3.2 on Redhat Enterprise Linux v.4 with
Apache 2.0.52. I followed the very helpful instructions at

It all seemed to go smoothly except that when I go to localhost/webwork2,
I get the following:

Can't locate WeBWorK/PG/ in @INC (@INC contains:
/opt/webwork/pg/lib /opt/webwork/webwork2/lib
/usr/lib/perl5/vendor_perl . /etc/httpd) at
/opt/webwork/webwork2/lib/WeBWorK/ line 28.

Call stack
* in WeBWorK::Utils::runtime_use called at line 329 of /opt/webwork/webwork2/lib/

Now, this file does exist (in the search path), with the following permissions
-rw-r--r-- 1 root root 14484 Jul 9 14:51 /opt/webwork/pg/lib/WeBWorK/PG/

If I reload the page a few times, eventually I'll instead get

Can't locate object method "new" via package "WeBWorK::ContentGenerator::Home" at
/opt/webwork/webwork2/lib/ line 333.

These other pages I visit all seem fine:
localhost/webwork2_files - get WeBWorK Placeholder Page
localhost/server-info - mod_perl, etc. seem to be all installed
localhost/server-status - looks fine to me
localhost/perl-status - looks fine to me

I'm assuming it's a permissions problem.
Please let me know what other information would be useful to send.

Thanks for any help,

In reply to Greg Warrington

Re: Failure loading localhost/webwork2

by Sam Hathaway -
Hi Greg,

The fact that you're getting different results per request suggests that some Apache child processes are in different states from others. Try shutting down Apache completely and then starting it:

sudo apache2ctl stop (and wait for all apache processes to exit)
sudo apache2ctl start

Hope this helps.