[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /trunk/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1154 Revision 2376
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 3# WeBWorK Online Homework Delivery System
4# $Id: global.conf.dist,v 1.32 2003-06-13 02:30:44 sh002i Exp $ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.75 2004/06/16 02:13:44 gage Exp $
6#
7# This program is free software; you can redistribute it and/or modify it under
8# the terms of either: (a) the GNU General Public License as published by the
9# Free Software Foundation; either version 2, or (at your option) any later
10# version, or (b) the "Artistic License" which comes with this package.
11#
12# This program is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
15# Artistic License for more details.
5################################################################################ 16################################################################################
6 17
7# This file is used to set up the default WeBWorK course environment for all 18# This file is used to set up the default WeBWorK course environment for all
8# requests. Values may be overwritten by the course.conf for a specific course. 19# requests. Values may be overwritten by the course.conf for a specific course.
9# All package variables set in this file are added to the course environment. 20# All package variables set in this file are added to the course environment.
10# If you wish to set a variable here but omit it from the course environment, 21# If you wish to set a variable here but omit it from the course environment,
11# use the "my" keyword. The following variables are available to this file: 22# use the "my" keyword. The following variables are available to this file:
12# 23#
13# $webworkRoot directory that contains the WeBWorK distribution 24# $webworkRoot directory that contains the WeBWorK distribution
14# $webworkURL base URL handled by Apache::WeBWorK 25# $webworkURLRoot base URL handled by Apache::WeBWorK
15# $pgRoot directory that contains the PG distribution 26# $pgRoot directory that contains the PG distribution
16# $courseName name of the course being used 27# $courseName name of the course being used
17 28
18################################################################################ 29################################################################################
19# WeBWorK settings 30# WeBWorK settings
20################################################################################ 31################################################################################
21 32
22%webworkDirs = ( 33%webworkDirs = (
23 root => "$webworkRoot", 34 root => "$webworkRoot",
35 DATA => "$webworkRoot/DATA",
36 uploadCache => "$webworkRoot/DATA/uploads",
24 bin => "$webworkRoot/bin", 37 bin => "$webworkRoot/bin",
25 conf => "$webworkRoot/conf", 38 conf => "$webworkRoot/conf",
26 courses => "$webworkRoot/courses", 39 courses => "$webworkRoot/courses",
40 htdocs => "$webworkRoot/htdocs",
41 htdocs_temp => "$webworkRoot/htdocs/tmp",
42 equationCache => "$webworkRoot/htdocs/tmp/equations",
43 local_help => "$webworkRoot/htdocs/helpFiles",
27 lib => "$webworkRoot/lib", 44 lib => "$webworkRoot/lib",
28 logs => "$webworkRoot/logs", 45 logs => "$webworkRoot/logs",
29 macros => "$pgRoot/macros", 46 macros => "$pgRoot/macros",
30 tmp => "$webworkRoot/tmp", 47 tmp => "$webworkRoot/tmp",
31); 48);
32 49
33%webworkFiles = ( 50%webworkFiles = (
34 environment => "$webworkDirs{conf}/global.conf", 51 environment => "$webworkDirs{conf}/global.conf",
35 hardcopySnippets => { 52 hardcopySnippets => {
36 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", 53 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
37 setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg", 54 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # hardcopySetHeader.pg",
38 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", 55 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
39 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", 56 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
40 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", 57 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
41 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", 58 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
42 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", 59 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
43 }, 60 },
44 screenSnippets => { 61 screenSnippets => {
45 setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg", 62 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # screenSetHeader.pg",
46 }, 63 },
47 logs => { 64 logs => {
48 timing => "$webworkDirs{logs}/timing.log", 65 timing => "$webworkDirs{logs}/timing.log",
49 }, 66 },
67 equationCacheDB => "$webworkDirs{DATA}/equationcache",
50); 68);
51 69
52%webworkURLs = ( 70%webworkURLs = (
53 root => "$webworkURLRoot", 71 root => "$webworkURLRoot",
54 home => "/webwork2_files/index.html", 72 home => "/webwork2_files/index.html",
55 htdocs => "/webwork2_files", 73 htdocs => "/webwork2_files",
74 htdocs_temp => "/webwork2_files/tmp",
75 equationCache => "/webwork2_files/tmp/equations",
56 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 76 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
77 local_help => "/webwork2_files/helpFiles",
57 oldProf => "/webwork-old/profLogin.pl", 78 oldProf => "/webwork1/profLogin.pl",
79 jsMath => "/webwork2_files/jsMath/jsMath.js",
80 asciimath => "/webwork2_files/ASCIIMathML/ASCIIMathML.js",
58); 81);
59 82
60################################################################################ 83################################################################################
61# Default course-specific settings 84# Default course-specific settings
62################################################################################ 85################################################################################
71 html_temp => "$courseRoot/html/tmp", 94 html_temp => "$courseRoot/html/tmp",
72 logs => "$courseRoot/logs", 95 logs => "$courseRoot/logs",
73 scoring => "$courseRoot/scoring", 96 scoring => "$courseRoot/scoring",
74 templates => "$courseRoot/templates", 97 templates => "$courseRoot/templates",
75 macros => "$courseRoot/templates/macros", 98 macros => "$courseRoot/templates/macros",
99 email => "$courseRoot/templates/email",
76); 100);
77 101
78%courseFiles = ( 102%courseFiles = (
79 environment => "$courseDirs{root}/course.conf", 103 environment => "$courseDirs{root}/course.conf",
80 motd => "$courseDirs{root}/motd.txt", 104 motd => "$courseDirs{templates}/motd.txt",
105 logs => {
106 answer_log => "$courseDirs{logs}/answer_log",
107 },
108 course_info => "course_info.txt", # path relative to templates directory
109 login_info => "login_info.txt", # path relative to templates directory
81); 110);
82 111
83# quick hack to fix transaction logging. blah. 112# quick hack to fix transaction logging. blah.
84$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 113$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
85$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; 114$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
86 115
87my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 116my $courseURLRoot = "/webwork2_course_files/$courseName";
88%courseURLs = ( 117%courseURLs = (
89 root => "$courseURLRoot", 118 root => "$courseURLRoot",
90 html => "$courseURLRoot", 119 html => "$courseURLRoot",
91 html_temp => "$courseURLRoot/tmp", 120 html_temp => "$courseURLRoot/tmp",
92); 121);
96################################################################################ 125################################################################################
97 126
98%mail = ( 127%mail = (
99 smtpServer => "mail.math.rochester.edu", 128 smtpServer => "mail.math.rochester.edu",
100 smtpSender => "webwork\@math.rochester.edu", 129 smtpSender => "webwork\@math.rochester.edu",
130
101 # allowedRecipients defines addresses that the PG system is allowed to 131 # allowedRecipients defines addresses that the PG system is allowed to
102 # send mail to. this prevents subtle PG exploits. This should be set 132 # send mail to. this prevents subtle PG exploits. This should be set
103 # in course.conf to the addresses of professors of each course. Sending 133 # in course.conf to the addresses of professors of each course. Sending
104 # mail from the PG system (i.e. questionaires, essay questions) will 134 # mail from the PG system (i.e. questionaires, essay questions) will
105 # fail if this is not set somewhere (either here or in course.conf). 135 # fail if this is not set somewhere (either here or in course.conf).
106 #allowedRecipients => [ 136 #allowedRecipients => [
107 # "yourname\@host.yourdomain.edu", 137 # 'prof1@host.yourdomain.edu',
138 # 'prof2@host.yourdomain.edu',
108 #], 139 #],
140
109 # if defined, feedbackRecipients overrides the list of recipients for 141 # if defined, feedbackRecipients overrides the list of recipients for
110 # feedback email. It's appropriate to set this in the course.conf for 142 # feedback email. It's appropriate to set this in the course.conf for
111 # specific courses, but probably not in global.conf. if not defined, 143 # specific courses, but probably not in global.conf. if not defined,
112 # mail is sent to all professors and TAs for a given course 144 # mail is sent to all professors and TAs for a given course
113 #feedbackRecipients => [ 145 #feedbackRecipients => [
114 # "prof1\@host.yourdomain.edu", 146 # 'prof1@host.yourdomain.edu',
115 # "prof2\@host.yourdomain.edu", 147 # 'prof2@host.yourdomain.edu',
116 #], 148 #],
149
117 # feedbackVerbosity: 150 # feedbackVerbosity:
118 # 0: send only the feedback comment and context link 151 # 0: send only the feedback comment and context link
119 # 1: as in 0, plus user, set, problem, and PG data 152 # 1: as in 0, plus user, set, problem, and PG data
120 # 2: as in 1, plus the problem environment (debugging data) 153 # 2: as in 1, plus the problem environment (debugging data)
121 feedbackVerbosity => 1, 154 feedbackVerbosity => 1,
155
156 # defines the size of the Mail Merge editor window
157 # FIXME: should this be here? it's UI, not mail
158 # FIXME: replace this with the auto-size method that TWiki uses
159 editor_window_rows => 15,
160 editor_window_columns => 100,
122); 161);
123 162
124%externalPrograms = ( 163%externalPrograms = (
125 mkdir => "/bin/mkdir", 164 mkdir => "/bin/mkdir",
126 tth => "/usr/local/bin/tth", 165 tth => "/usr/local/bin/tth",
127 pdflatex => "/usr/local/bin/pdflatex", 166 pdflatex => "/usr/local/bin/pdflatex",
128 latex => "/usr/local/bin/latex", 167 latex => "/usr/local/bin/latex",
129 #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
130 dvipng => "/usr/local/bin/dvipng", 168 dvipng => "/usr/local/bin/dvipng",
131 gif2eps => "$webworkDirs{bin}/gif2eps", 169 gif2eps => "$webworkDirs{bin}/gif2eps",
132 png2eps => "$webworkDirs{bin}/png2eps", 170 png2eps => "$webworkDirs{bin}/png2eps",
133 gif2png => "$webworkDirs{bin}/gif2png", 171 gif2png => "$webworkDirs{bin}/gif2png",
172 mysql => "/usr/local/bin/mysql",
173);
174
175%siteDefaults = (
176 status => {
177 audit => "Audit",
178 A => "Audit",
179 drop => "Drop",
180 D => "Drop",
181 withdraw => "Drop",
182 current => "Enrolled",
183 C => "Enrolled",
184 enrolled => "Enrolled",
185 },
134); 186);
135 187
136################################################################################ 188################################################################################
137# Frontend options 189# Frontend options
138################################################################################ 190################################################################################
143 195
144################################################################################ 196################################################################################
145# Database options 197# Database options
146################################################################################ 198################################################################################
147 199
148# Several database layouts are defined in separate environment files. Select the 200# Several database are defined in the file conf/database.conf and stored in the
149# one which should be used by all courses by default, and include it. This can 201# hash %dbLayouts.
150# be overridden by including a difference environment file in the course.conf of
151# a particular course.
152
153# Include sql.conf to specify a database layout for use with an SQL server.
154#include "conf/sql.conf";
155
156# Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
157# databases. Use this layout if you wish to share courses between WeBWorK 1.x
158# and WeBWorK 2.
159include "conf/gdbm.conf"; 202include "conf/database.conf";
160 203
161# Please read the documentation in the file that you chose to include, as there 204# Select the default database layout. This can be overridden in the course.conf
162# are layout-specific options that must be configured. 205# file of a particular course.
206#$dbLayoutName = "sql";
207$dbLayoutName = "gdbm";
208
209*dbLayout = $dbLayouts{$dbLayoutName};
210
211################################################################################
212# Problem library options
213################################################################################
214
215%problemLibrary = (
216 root => "", # set to the top of the problem library, if its installed
217 sourceSQL => "ProblemLibrary",
218 userSQL => "webworkRead",
219 passwordSQL => "",
220);
163 221
164################################################################################ 222################################################################################
165# Authorization system 223# Authorization system
166################################################################################ 224################################################################################
167 225
170# action, >=5 will allow a TA to, and >=0 will allow a student to perform an 228# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
171# action (almost never what you want). 229# action (almost never what you want).
172my $ta = 5; 230my $ta = 5;
173my $professor = 10; 231my $professor = 10;
174%permissionLevels = ( 232%permissionLevels = (
233 report_bugs => 0,
234 view_multiple_sets => $ta,
235 view_unopened_sets => $ta,
236 view_unpublished_sets => $ta,
237 view_answers => $ta,
175 become_student => $professor, 238 become_student => $professor,
176 access_instructor_tools => $ta, 239 access_instructor_tools => $ta,
177 create_and_delete_problem_sets => $professor, 240 create_and_delete_problem_sets => $professor,
178 modify_problem_sets => $professor, 241 modify_problem_sets => $professor,
179 assign_problem_sets => $professor, 242 assign_problem_sets => $professor,
243 modify_student_data => $professor,
244 score_sets => $professor,
245 send_mail => $professor,
246 modify_classlist_files => $professor,
247 modify_set_def_files => $professor,
248 modify_scoring_files => $professor,
249 create_and_delete_courses => $professor,
250 fix_course_databases => $professor,
180); 251);
181 252
182################################################################################ 253################################################################################
183# Session options 254# Session options
184################################################################################ 255################################################################################
205################################################################################ 276################################################################################
206# PG translation options 277# PG translation options
207################################################################################ 278################################################################################
208 279
209%pg = ( 280%pg = (
210 directories => { 281 # available display modes
211 # directories used only by PG 282 displayModes => [ qw(plainText formattedText images jsMath asciimath) ],
212 lib => "$pgRoot/lib", 283 # pg options
213 macros => "$pgRoot/macros",
214 }, # (not used yet)
215 options => { 284 options => {
216 # default translation options 285 # default translation options
217 displayMode => "images", 286 displayMode => "images",
218 showOldAnswers => 1, 287 showOldAnswers => 1,
219 showCorrectAnswers => 0, 288 showCorrectAnswers => 0,
221 showSolutions => 0, 290 showSolutions => 0,
222 catchWarnings => 0, # there's a global warning catcher now 291 catchWarnings => 0, # there's a global warning catcher now
223 # default grader 292 # default grader
224 grader => "avg_problem_grader", 293 grader => "avg_problem_grader",
225 }, 294 },
295 # options for various renderers
296 renderers => {
297 "WeBWorK::PG::Remote" => {
298 proxy => "http://localhost:21000/RenderD"
299 }
300 },
301 # currently selected renderer
302 renderer => "WeBWorK::PG::Local",
303 #renderer => "WeBWorK::PG::Remote",
304 # directories used by PG
305 directories => {
306 # directories used only by PG
307 root => "$pgRoot",
308 lib => "$pgRoot/lib",
309 macros => "$pgRoot/macros",
310 },
226 # this will be customized in the course.conf file 311 # this can be customized in the course.conf file
227 specialPGEnvironmentVars => { 312 specialPGEnvironmentVars => {
228 PRINT_FILE_NAMES_FOR => ['gage','apizer','voloshin','lr003k','professor'], 313 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
229 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 314 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
230 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 315 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
231 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", 316 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
232 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", 317 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
318 onTheFlyImageSize => 400,
233 }, 319 },
234 # modules lists module names and the packages each contains 320 # modules lists module names and the packages each contains
235 modules => [ 321 modules => [
236 [qw(DynaLoader)], 322 [qw(DynaLoader)],
237 [qw(Exporter)], 323 [qw(Exporter)],
273 numAbsTolDefault => .001, 359 numAbsTolDefault => .001,
274 numFormatDefault => "", 360 numFormatDefault => "",
275 numRelPercentTolDefault => .1, 361 numRelPercentTolDefault => .1,
276 numZeroLevelDefault => 1E-14, 362 numZeroLevelDefault => 1E-14,
277 numZeroLevelTolDefault => 1E-12, 363 numZeroLevelTolDefault => 1E-12,
364 useBaseTenLog => 0,
365 defaultDisplayMatrixStyle => "[s]",
278 }, 366 },
279); 367);

Legend:
Removed from v.1154  
changed lines
  Added in v.2376

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9