Installation

Failure loading localhost/webwork2

Failure loading localhost/webwork2

by Greg Warrington -
Number of replies: 2
Hi,

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
http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/InstallationManualV2pt3

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

Can't locate WeBWorK/PG/ImageGenerator.pm 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/PG.pm line 28.

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

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/ImageGenerator.pm

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/WeBWorK.pm 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,
Greg


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.
-sam