## Forum archive 2000-2006

### Inho Choi - Webwork Installation Problems

by Arnold Pizer -
Number of replies: 0
 Webwork Installation Problems topic started 6/10/2004; 6:00:25 AMlast post 7/12/2004; 9:23:50 AM
 Inho Choi - Webwork Installation Problems  6/10/2004; 6:00:25 AM (reads: 2031, responses: 9) Hi. Is there any one knows about how I can fix Apache configuration? I got the error message "Systex error on line 1070 of /conf/httpd perl not allowed here [FAILED] And I look at the line 1070, it is          use lib "/opt/webwork2/lib";       use lib "/opt/pg/lib";    And on the web "SystemConfig" section it talks about it but not sure what I am suppose to do for this problem. Is there any one who having the same problem? Or had solved?<| Post or View Comments |>

 Sam Hathaway - Re: Webwork Installation Problems  6/10/2004; 11:37:10 AM (reads: 2295, responses: 0) Your installation of mod_perl is not allowing the section. You must compile mod_perl with PERL_SECTIONS enabled. If this is not an option, create a file called webwork_startup.pl and put the "use lib" lines in that file. Then, replace the section in the main config file with: PerlRequire "/path/to/webwork_startup.pl" What operating system (and distribution, if applicable) are you using? Did you compile mod_perl yourself, or use a packaged version? <| Post or View Comments |>

 Inho Choi - Re: Webwork Installation Problems  6/11/2004; 3:25:27 AM (reads: 2284, responses: 0) Thank you for your advise. I will try that. By the way do you have any sample startup.pl? If you have, do you mind to share it with others. It seems I am not the only one who needs to solve the problem. I am using Fedora Core 2 and it is rpm package. I tried both, compile and package, but it didn't work well. I didn't try what you said, so I will try, and let others know. Thank you.<| Post or View Comments |>

 Sam Hathaway - Re: Webwork Installation Problems  6/13/2004; 3:53:31 PM (reads: 2221, responses: 0) Here is a sample webwork_startup.pl: # startup script, to be used in place of section# in Apache config file. replace section with:# # PerlRequire /path/to/webwork_startup.pl# use lib "/opt/webwork2/lib";use lib "/opt/pg/lib";# # if webwork2 and pg are not installed in /opt, change# the above paths to reflect the actual locations. I will add this to the installation documentation. <| Post or View Comments |>

 Inho Choi - Re: Webwork Installation Problems  6/15/2004; 2:20:11 AM (reads: 2230, responses: 0) Thank you for your help. I did what you have advised me, but the Apache doesn't like "PerlRequire". It is the exactly the same error that I have faced before. Systax error on line 1083 of /xxx/xxx/httpd.conf PerlRequire not allowed here. Now what am I supposed to do? Any idea?<| Post or View Comments |>

 Sam Hathaway - Re: Webwork Installation Problems  6/15/2004; 10:31:10 AM (reads: 2211, responses: 0) First, please make sure that mod_perl is loaded. To do so, follow our ApacheSetup instructions:  To test your mod_perl installation, enable the following stanza in your httpd.conf file:  SetHandler server-info Order deny,allow Deny from all Allow from .yourschool.edu Then, visit http://yourserver.yourschool.edu/server-info. You should see an entry in the list of modules for mod_perl. If that doesn't work, then mod_perl is not properly installed. I need to know how mod_perl is compiled to understand your problem. One way to find out is to add the following stanza to your httpd.conf file:  SetHandler perl-script PerlHandler Apache::Status  Then send me the output of http://yourserver.yourschool.edu/perl-status?hooks <| Post or View Comments |>

 Sam Hathaway - Re: Webwork Installation Problems  6/16/2004; 12:50:56 AM (reads: 2220, responses: 0) It looks like Apache::Status is running into an error when trying to display the list of hooks. Please send any error_log output generated with loading /perl-status?hooks. Thanks. -sam <| Post or View Comments |>

Inho Choi - Re: Webwork Installation Problems
6/16/2004; 4:14:51 PM (reads: 2351, responses: 0)

Here is the apache error_log. This log contains three request. apachect stop, apachectl start, and /perl-status?hooks.

----Beginning of log----------

And here is the Statu -----Beginning of ststus.pm---------

sub status_hooks { my($r,$q) = @_; # XXX: hooks list access doesn't exist yet in 2.0 require mod_perl; require mod_perl_hooks; my @retval = qw(); my @list = mod_perl::hooks(); for my $hook (sort @list) { my$on_off = mod_perl::hook($hook) ? "Enabled" : "Disabled"; push @retval, "n"; } push @retval, qw( $hook \$on_off
); @retval; } s.pm file where the error takes place. ---------End of log--------------

require mod_perl_hooks; is the line 207.

Why does it make an error?

Thank you again for your help.

<| Post or View Comments |>

 Sam Hathaway - Re: Webwork Installation Problems  7/12/2004; 9:23:50 AM (reads: 2129, responses: 0) Looks like I forgot to ask earlier. Is this mod_perl 1 or mod_perl 2? WeBWorK doesn't yet support Apache/mod_perl 2. Efforts are underway to make it compatible. <| Post or View Comments |>