## Forum archive 2000-2006

### Richard Bayne - installing WW2

by Arnold Pizer -
Number of replies: 0
 installing WW2 topic started 9/13/2006; 3:43:50 PMlast post 9/23/2006; 1:05:24 PM
 Richard Bayne - installing WW2  9/13/2006; 3:43:50 PM (reads: 370, responses: 11) I am belatedly trying to install WW2 and I think I saw something referring to this topic several months ago, but could not find it when looking back through the topics lists. I have installed Fedora 5 and Apache 1.3. When I appended the WW config file to Apache's httpd.conf as instructed and try to restart Apache, I get an error message saying that DateTime.pm can't be located in @INC. Though I suspect that @INC is an alias of some path, I am not sure just what it is, and I have no clue of where DateTime is (or where it should be) nor how to let @INC know where it is. If someone could give me a little direction, I would be very thankful. Bayne <| Post or View Comments |>

 Arnold K. Pizer - Re: installing WW2  9/13/2006; 5:13:52 PM (reads: 396, responses: 0) Hi Richard, DateTime can be a difficult perl module to install. Very explicit directions for doing so can be found at http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/InstallationManualV2pt2forSuSE10pt1 Look at the section "Installing Additional Perl Modules from Source" Also note in the paragraph above that section the direction: Before we begin, as root run > su # unset LANG since otherwise the installation of Module::Build may fail.  Arnie <| Post or View Comments |>

 Richard Bayne - Re: installing WW2  9/14/2006; 4:11:14 PM (reads: 378, responses: 0) Arnie, Thanks for the info. I seem to have loaded the DateTime ok as indicated by the response I get to the command perl -MDateTime -e 'print "installed!\n"' Nevertheless, I now get the message that Date/Parse.pm is not found. Can I assume this is not part of the other module? The slash '/' in the name bothers me, and I can not find such a module listed in CPAN. Bayne <| Post or View Comments |>

 Michael Gage - Re: installing WW2  9/14/2006; 5:14:51 PM (reads: 379, responses: 0) The usual convention is to use Date::Parse as the module name. cpan> install Date::Parse should install it for you. You may find some other CPAN modules that haven't been installed. We've tried to list the ones that are non-standard, but what is standard in one perl distribution may not be standard in another one. :-) <| Post or View Comments |>

 Richard Bayne - Re: installing WW2  9/14/2006; 11:32:13 PM (reads: 374, responses: 0) Thanks again. I seem to have gotten that straight now and am ready to move on to dealing with mysql tomorrow. I was just thrown a little by taking the slash too literally. Bayne <| Post or View Comments |>

 Richard Bayne - Re: installing WW2  9/19/2006; 6:11:23 PM (reads: 331, responses: 0) Mike - One more question. I have thing apparently all set up except that I cannot get the WW hello page to appear. As a matter of fact, I cannot even get the Apache welcome page, only another page that I substituted for it, but I do not know where the info to go to that page is located. What file tells Apache where to look for its index file when one enters the url for localhost. I have tried throughout the weekend to find this out and I know when I learn I shall kick myself. Nevertheless, I need to get this going before too much more of the semester has passed. Bayne <| Post or View Comments |>

 Michael Gage - Re: installing WW2  9/19/2006; 7:04:07 PM (reads: 335, responses: 0) Hi Richard, The primary spot that you do this is in a file called httpd.conf (for http daemon configuration). Depending on the machine it might be in /etc/http or in /etc/apache or in /usr/local/etc/http etc. You can try to use  locate httpd.conf to find it. This file has to include a line pointing to webwork.apache-config: # This file configures Apache to handle requests for WeBWorK. To install WeBWorK# support in your Apache configuration, add the following line to the end of# your Apache configuration file (usually apache.conf or httpd.conf):## Include /path/to/webwork.apache-config## Customize the variable $webwork_dir below to match the location of your# WeBWorK installation. If you are still having trouble you can email me the contents of the httpd.conf file and its location and I can probably help you out. -- Mike <| Post or View Comments |>  Richard Bayne - Re: installing WW2 9/20/2006; 12:37:06 AM (reads: 324, responses: 0) Thanks. Your answer set me on the path to the solution. I have managed to make the job harder for myself by confounding the instructions from the installation manual for current WeBWorK 2.2 release and those for installing on SUSE. In any case, I hope that I shall now be able to finish the setup. Bayne <| Post or View Comments |>  Richard Bayne - Re: installing WW2 9/21/2006; 7:31:44 PM (reads: 287, responses: 0) Right. We now are almost ready. However, I see that MySql will probably cause me several problems. I was not able to create a new course until I gave everyone write permission to the Courses directory. That is, 775 was not satisfactory, only 777. I do have the group of this directory set to the same group as apache. Also, on certain other actions taken, I get error or warning messages. One such occured when I deleted a course; the message was the following: failed to open /opt/webwork/logs/hosted_courses.log for writing. Permission denied at /opt/webwork/lib/WeBWorK/utils.pm line 652 Bayne <| Post or View Comments |>  Sam Hathaway - Re: installing WW2 9/22/2006; 10:51:30 AM (reads: 281, responses: 0) Bayne, Check the permissions on /opt/webwork/logs/. It's probably not writeable by Apache. (/opt/webwork/ is not the typical installation directory -- it's usually /opt/webwork2 or /opt/webwork/webwork2, so if that path doesn't look familiar you probably have a path set wrong in webwork.apache-config or global.conf.) <| Post or View Comments |>  Richard Bayne - Re: installing WW2 9/22/2006; 4:23:01 PM (reads: 282, responses: 0) Sam, The permissions on /opt/webwork/logs/ is rwxrwsr-x and the group is apache, which is the group of the web server. For certain local reasons this installation is set up without using a webwork2 directory. In webwork.apache-confiig$webwork_dir = "/opt/webwork"; in global.conf \$webworkDirs{root} = "/opt/webwork"; The /opt/webwork directory has all the subdirectories : bin conf CVS doc lib logs tmp clients courses DATA htdocs libraries pg Again, after getting a permission error about not being able to write to the Courses directory, I was able to create a course when I allowed write permission to all. Also, is there anywhere a clear set of instructions for setting up a problem set in WW2. Richard <| Post or View Comments |>

 Richard Bayne - Re: installing WW2  9/23/2006; 1:05:24 PM (reads: 268, responses: 0) Update report: I have found the cause of the permissions problem. During one of the various reinstallations of WW and Apache, the user name and group for the server were not changed in httpd.conf from nobody to apache. Thanks for your patience. Bayne <| Post or View Comments |>