Forum archive 2000-2006

John Curran - Webwork installation problems -- apache cannot find webwork directories

John Curran - Webwork installation problems -- apache cannot find webwork directories

by Arnold Pizer -
Number of replies: 0
inactiveTopicWebwork installation problems -- apache cannot find webwork directories topic started 7/29/2005; 5:11:24 PM
last post 7/29/2005; 8:44:45 PM
userJohn Curran - Webwork installation problems -- apache cannot find webwork directories  blueArrow
7/29/2005; 5:11:24 PM (reads: 740, responses: 1)
I am having some problems with my Webwork 2.0.1 installation, which I am installing from the tarballs on a Fedora Core 2 system. I am using the default directories such as /opt/webwork2 for installation, so I have not modified the file webwork.apache-config; but apache (1.3.33) doesn't seem to like it when I try to invoke it from the httpd.conf file.

The apache error message says there is a syntax error in the line 'my $webwork_dir = "/opt/webwork2";' near the top of webwork.apache-config. (Btw I am using the line 'PerlRequire "/opt/webwork2/conf/webwork.apache-config" ' at the end of my httpd.conf file, since mod_perl doesn't seem to be installed with the PERL_SECTIONS option. The mod_perl (1.29) installation does work otherwise.)

I think this means apache cannot find the webwork directories. If I log onto http://myserver.etc.etc/webwork2, I get the "WeBWorK Placeholder Page", not the webwork home page. Also the /webwork2_files and /webwork2_courses_files locations don't show up at all in a browser.

Grateful for any suggestions you may have.

<| Post or View Comments |>


userSam Hathaway - Re: Webwork installation problems -- apache cannot find webwork directories  blueArrow
7/29/2005; 8:44:45 PM (reads: 965, responses: 0)
webwork.apache-config is an Apache configuration file, not a Perl source file. PerlRequire expects a file containing Perl source. You can theoretically convert webwork.apache-config to a Perl source file just by removing the <Perl> and </Perl> lines, but I don't know if the $PerlConfig mechanism works outside of <Perl> ... </Perl> block in the Apache configuration.

Your best bet is to recompile mod_perl to enable PERL_SECTIONS. I understand this can be somewhat of a chore, but I'd imagine you could minimize the hassle by grabbing the source RPM, modifying the build options, and rebuilding the binary RPM.

Please do let us know if you get things to work using PerlRequire -- it would be nice to not need PERL_SECTIONS.
-sam

<| Post or View Comments |>