Parent Directory
|
Revision Log
This fragmented should be edited and then inserted in an existing httpd.conf file to enable WeBWorK2.0 -Mike
1 # To add WeBWorK2 to an existing http.conf file (which already has mod_perl enabled) 2 3 # (1) Customize the links below to point the correct directories in your system by replacing 4 WEBWORK_DIR with your local webwork directory path. 5 6 7 8 # In my system, running a personal development WeBWorK2 in my home directory 9 # I replace WEBWORK_DIR by /home/gage/webwork/ 10 # I have checked out the webwork-modperl and pg modules into this directory 11 12 # You can use a global replace to change WEBWORK_DIR to the appropriate directory. 13 # There are 7 occurences, plus 3 occurences in the comments. 14 15 16 # (2) insert the following code in a section of the httpd.conf file where <Location> and <Alias> 17 # objects are being defined. 18 19 20 21 # The ww_status link is used in testing. The Apache::Status module is available on all machines 22 # for which Apache has been installed. 23 24 25 ################################################################################## 26 <IfModule mod_perl.c> 27 PerlFreshRestart On 28 <Location /webwork2> 29 SetHandler perl-script 30 PerlModule Apache::DProf 31 PerlHandler Apache::WeBWorK 32 33 PerlSetVar webwork_root WEBWORK_DIR/webwork-modperl 34 PerlSetVar pg_root /WEBWORK_DIR/pg 35 36 <Perl> 37 use lib 'WEBWORK_DIR/webwork-modperl/lib'; 38 use lib 'WEBWORK_DIR/pg/lib'; 39 </Perl> 40 </Location> 41 </IfModule> 42 # This DocumentRoot doesn't actually make a lot of sense. In a 43 # WeBWorK mod_perl system, there is no static document root, but the 44 # DocumentRoot does have to exist, and not have a subdirectory 45 # named "webwork". It suffices. 46 DocumentRoot "WEBWORK_DIR/webwork-modperl/htdocs" 47 48 # This alias, however, is important. 49 Alias /webwork2_files/ /WEBWORK_DIR/webwork-modperl/htdocs/ 50 51 # This should match the DocumentRoot 52 <Directory "/WEBWORK_DIR/webwork-modperl/htdocs"> 53 Options Indexes FollowSymLinks MultiViews 54 AllowOverride None 55 Order allow,deny 56 Allow from all 57 </Directory> 58 59 60 # status test 61 <Location /ww_status> 62 SetHandler perl-script 63 PerlHandler Apache::Status 64 </Location> 65 66 67 ##################################################################################
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |