00001 ; <?php exit();
00002 ; DO NOT DELETE THE ABOVE LINE!!!
00003 ; Doing so will expose this configuration file through your web site!
00004 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00005
00006 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00007 ;
00008 ; config.TEMPLATE.inc.php
00009 ;
00010 ; Copyright (c) 2003-2008 John Willinsky
00011 ; Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
00012 ;
00013 ; OJS Configuration settings.
00014 ; Rename config.TEMPLATE.inc.php to config.inc.php to use.
00015 ;
00016 ; $Id: config.TEMPLATE.inc.php,v 1.55 2008/06/13 20:16:43 asmecher Exp $
00017 ;
00018 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00019
00020
00021 ;;;;;;;;;;;;;;;;;;;;
00022 ; General Settings ;
00023 ;;;;;;;;;;;;;;;;;;;;
00024
00025 [general]
00026
00027 ; Set this to On once the system has been installed
00028 ; (This is generally done automatically by the installer)
00029 installed = On
00030
00031 ; The canonical URL to the OJS installation (excluding the trailing slash)
00032 base_url = "http://localhost/ojs2-smoke"
00033
00034 ; Path to the registry directory (containing various settings files)
00035 ; Although the files in this directory generally do not contain any
00036 ; sensitive information, the directory can be moved to a location that
00037 ; is not web-accessible if desired
00038 registry_dir = registry
00039
00040 ; Session cookie name
00041 session_cookie_name = OJSSID
00042
00043 ; Number of days to save login cookie for if user selects to remember
00044 ; (set to 0 to force expiration at end of current session)
00045 session_lifetime = 30
00046
00047 ; Enable support for running scheduled tasks
00048 ; Set this to On if you have set up the scheduled tasks script to
00049 ; execute periodically
00050 scheduled_tasks = Off
00051
00052 ; Short and long date formats
00053 date_format_trunc = "%m-%d"
00054 date_format_short = "%Y-%m-%d"
00055 date_format_long = "%B %e, %Y"
00056 datetime_format_short = "%Y-%m-%d %I:%M %p"
00057 datetime_format_long = "%B %e, %Y - %I:%M %p"
00058
00059 ; Use URL parameters instead of CGI PATH_INFO. This is useful for
00060 ; broken server setups that don't support the PATH_INFO environment
00061 ; variable.
00062 disable_path_info = Off
00063
00064 ; Base URL override settings: Entries like the following examples can
00065 ; be used to override the base URLs used by OJS. If you want to use a
00066 ; proxy to rewrite URLs to OJS, configure your proxy's URL here.
00067 ; Syntax: base_url[journal_path] = http:
00068 ; To override URLs that aren't part of a particular journal, use a
00069 ; journal_path of "index".
00070 ; Examples:
00071 ; base_url[index] = http://www.myUrl.com
00072 ; base_url[myJournal] = http://www.myUrl.com/myJournal
00073 ; base_url[myOtherJournal] = http://myOtherJournal.myUrl.com
00074
00075 ;;;;;;;;;;;;;;;;;;;;;
00076 ; Database Settings ;
00077 ;;;;;;;;;;;;;;;;;;;;;
00078
00079 [database]
00080
00081 driver = postgres
00082 host = localhost
00083 username = ojs2
00084 password = ojs2
00085 name = ojs22
00086
00087 ; Enable persistent connections (recommended)
00088 persistent = On
00089
00090 ; Enable database debug output (very verbose!)
00091 debug = Off
00092
00093 ;;;;;;;;;;;;;;;;;;
00094 ; Cache Settings ;
00095 ;;;;;;;;;;;;;;;;;;
00096
00097 [cache]
00098
00099 ; The type of data caching to use. Options are:
00100 ; - memcache: Use the memcache server configured below
00101 ; - file: Use file-based caching; configured below
00102 ; - none: Use no caching. This may be extremely slow.
00103 ; This setting affects locale data, journal settings, and plugin settings.
00104
00105 cache = file
00106
00107 ; Enable memcache support
00108 memcache_hostname = localhost
00109 memcache_port = 11211
00110
00111 ; For site visitors who are not logged in, many pages are often entirely
00112 ; static (e.g. About, the home page, etc). If the option below is enabled,
00113 ; these pages will be cached in local flat files for the number of hours
00114 ; specified in the web_cache_hours option. This will cut down on server
00115 ; overhead for many requests, but should be used with caution because:
00116 ; 1) Things like journal metadata changes will not be reflected in cached
00117 ; data until the cache expires or is cleared, and
00118 ; 2) This caching WILL NOT RESPECT DOMAIN-BASED SUBSCRIPTIONS.
00119 ; However, for situations like hosting high-volume open access journals, it's
00120 ; an easy way of decreasing server load.
00121
00122 web_cache = Off
00123 web_cache_hours = 1
00124
00125
00126 ;;;;;;;;;;;;;;;;;;;;;;;;;
00127 ; Localization Settings ;
00128 ;;;;;;;;;;;;;;;;;;;;;;;;;
00129
00130 [i18n]
00131
00132 ; Default locale
00133 locale = en_US
00134
00135 ; Client output/input character set
00136 client_charset = utf-8
00137
00138 ; Database connection character set
00139 ; Must be set to "Off" if not supported by the database server
00140 ; If enabled, must be the same character set as "client_charset"
00141 ; (although the actual name may differ slightly depending on the server)
00142 connection_charset = utf8
00143
00144 ; Database storage character set
00145 ; Must be set to "Off" if not supported by the database server
00146 database_charset = utf8
00147
00148 ; Enable character normalization to utf-8 (recommended)
00149 ; If disabled, strings will be passed through in their native encoding
00150 charset_normalization = On
00151
00152 ;;;;;;;;;;;;;;;;;
00153 ; File Settings ;
00154 ;;;;;;;;;;;;;;;;;
00155
00156 [files]
00157
00158 ; Complete path to directory to store uploaded files
00159 ; (This directory should not be directly web-accessible)
00160 ; Windows users should use forward slashes
00161 files_dir = /home/asmecher/cvs/ojs2-smoke/files
00162
00163 ; Path to the directory to store public uploaded files
00164 ; (This directory should be web-accessible and the specified path
00165 ; should be relative to the base OJS directory)
00166 ; Windows users should use forward slashes
00167 public_files_dir = public
00168
00169 ; Permissions mask for created files and directories
00170 umask = 0022
00171
00172
00173 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00174 ; Fileinfo (MIME) Settings ;
00175 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
00176
00177 [finfo]
00178 mime_database_path = /etc/magic.mime
00179
00180
00181 ;;;;;;;;;;;;;;;;;;;;;
00182 ; Security Settings ;
00183 ;;;;;;;;;;;;;;;;;;;;;
00184
00185 [security]
00186
00187 ; Force SSL connections site-wide
00188 force_ssl = Off
00189
00190 ; Force SSL connections for login only
00191 force_login_ssl = Off
00192
00193 ; This check will invalidate a session if the user's IP address changes.
00194 ; Enabling this option provides some amount of additional security, but may
00195 ; cause problems for users behind a proxy farm (e.g., AOL).
00196 session_check_ip = On
00197
00198 ; The encryption (hashing) algorithm to use for encrypting user passwords
00199 ; Valid values are: md5, sha1
00200 ; Note that sha1 requires PHP >= 4.3.0
00201 encryption = md5
00202
00203 ; Allowed HTML tags for fields that permit restricted HTML.
00204 allowed_html = "<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img> <sup> <sub> <br> <p>"
00205
00206 ; Prevent VIM from attempting to highlight the rest of the config file
00207 ; with unclosed tags:
00208 ; </p></sub></sup></u></i></b></dd></dt></dl></li></ol></ul></code></cite></strong></em></a>
00209
00210
00211 ;Is implicit authentication enabled or not
00212
00213 ;implicit_auth = On
00214
00215 ;Implicit Auth Header Variables
00216
00217 ;implicit_auth_header_first_name = HTTP_TDL_GIVENNAME
00218 ;implicit_auth_header_last_name = HTTP_TDL_SN
00219 ;implicit_auth_header_email = HTTP_TDL_MAIL
00220 ;implicit_auth_header_phone = HTTP_TDL_TELEPHONENUMBER
00221 ;implicit_auth_header_initials = HTTP_TDL_METADATA_INITIALS
00222 ;implicit_auth_header_mailing_address = HTTP_TDL_METADATA_TDLHOMEPOSTALADDRESS
00223 ;implicit_auth_header_uin = HTTP_TDL_TDLUID
00224
00225 ; A space delimited list of uins to make admin
00226 ;implicit_auth_admin_list = "100000040@tdl.org 85B7FA892DAA90F7@utexas.edu 100000012@tdl.org"
00227
00228 ; URL of the implicit auth 'Way Finder' page. See pages/login/LoginHandler.inc.php for usage.
00229
00230 ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf"
00231
00232
00233
00234 ;;;;;;;;;;;;;;;;;;
00235 ; Email Settings ;
00236 ;;;;;;;;;;;;;;;;;;
00237
00238 [email]
00239
00240 ; Use SMTP for sending mail instead of mail()
00241 ; smtp = On
00242
00243 ; SMTP server settings
00244 ; smtp_server = mail.example.com
00245 ; smtp_port = 25
00246
00247 ; Enable SMTP authentication
00248 ; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
00249 ; smtp_auth = PLAIN
00250 ; smtp_username = username
00251 ; smtp_password = password
00252
00253 ; Allow envelope sender to be specified
00254 ; (may not be possible with some server configurations)
00255 ; allow_envelope_sender = Off
00256
00257 ; Default envelope sender to use if none is specified elsewhere
00258 ; default_envelope_sender = my_address@my_host.com
00259
00260 ; Enable attachments in the various "Send Email" pages.
00261 ; (Disabling here will not disable attachments on features that
00262 ; require them, e.g. attachment-based reviews)
00263 enable_attachments = On
00264
00265 ; Amount of time required between attempts to send non-editorial emails
00266 ; in seconds. This can be used to help prevent email relaying via OJS.
00267 time_between_emails = 3600
00268
00269 ; Maximum number of recipients that can be included in a single email
00270 ; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
00271 max_recipients = 10
00272
00273 ; If enabled, email addresses must be validated before login is possible.
00274 require_validation = Off
00275
00276 ; Maximum number of days before an unvalidated account expires and is deleted
00277 validation_timeout = 14
00278
00279
00280 ;;;;;;;;;;;;;;;;;;;
00281 ; Search Settings ;
00282 ;;;;;;;;;;;;;;;;;;;
00283
00284 [search]
00285
00286 ; Minimum indexed word length
00287 min_word_length = 3
00288
00289 ; The maximum number of search results fetched per keyword. These results
00290 ; are fetched and merged to provide results for searches with several keywords.
00291 results_per_keyword = 500
00292
00293 ; The number of hours for which keyword search results are cached.
00294 result_cache_hours = 1
00295
00296 ; Paths to helper programs for indexing non-text files.
00297 ; Programs are assumed to output the converted text to stdout, and "%s" is
00298 ; replaced by the file argument.
00299 ; Note that using full paths to the binaries is recommended.
00300 ; Uncomment applicable lines to enable (at most one per file type).
00301 ; Additional "index[MIME_TYPE]" lines can be added for any mime type to be
00302 ; indexed.
00303
00304 ; PDF
00305 ; index[application/pdf] = "/usr/bin/pstotext %s"
00306 ; index[application/pdf] = "/usr/bin/pdftotext %s -"
00307
00308 ; PostScript
00309 ; index[application/postscript] = "/usr/bin/pstotext %s"
00310 ; index[application/postscript] = "/usr/bin/ps2ascii %s"
00311
00312 ; Microsoft Word
00313 ; index[application/msword] = "/usr/bin/antiword %s"
00314 ; index[application/msword] = "/usr/bin/catdoc %s"
00315
00316
00317 ;;;;;;;;;;;;;;;;
00318 ; OAI Settings ;
00319 ;;;;;;;;;;;;;;;;
00320
00321 [oai]
00322
00323 ; Enable OAI front-end to the site
00324 oai = On
00325
00326 ; OAI Repository identifier
00327 repository_id = "ojs.localhost"
00328
00329
00330 ;;;;;;;;;;;;;;;;;;;;;;
00331 ; Interface Settings ;
00332 ;;;;;;;;;;;;;;;;;;;;;;
00333
00334 [interface]
00335
00336 ; Number of items to display per page; overridable on a per-journal basis
00337 items_per_page = 25
00338
00339 ; Number of page links to display; overridable on a per-journal basis
00340 page_links = 10
00341
00342
00343 ;;;;;;;;;;;;;;;;;;;;
00344 ; Captcha Settings ;
00345 ;;;;;;;;;;;;;;;;;;;;
00346
00347 [captcha]
00348
00349 ; Whether or not to enable Captcha features
00350 captcha = off
00351
00352 ; Whether or not to use Captcha on user registration
00353 captcha_on_register = on
00354
00355 ; Whether or not to use Captcha on user comments
00356 captcha_on_comments = on
00357
00358 ; Font location for font to use in Captcha images
00359 font_location = /usr/share/fonts/truetype/freefont/FreeSerif.ttf
00360
00361
00362 ;;;;;;;;;;;;;;;;;;
00363 ; Proxy Settings ;
00364 ;;;;;;;;;;;;;;;;;;
00365
00366 [proxy]
00367
00368 ; Note that allow_url_fopen must be set to Off before these proxy settings
00369 ; will take effect.
00370
00371 ; The HTTP proxy configuration to use
00372 ; http_host = localhost
00373 ; http_port = 80
00374 ; proxy_username = username
00375 ; proxy_password = password
00376
00377
00378 ;;;;;;;;;;;;;;;;;;
00379 ; Debug Settings ;
00380 ;;;;;;;;;;;;;;;;;;
00381
00382 [debug]
00383
00384 ; Display execution stats in the footer
00385 show_stats = Off
00386
00387 ; Display a stack trace when a fatal error occurs.
00388 ; Note that this may expose private information and should be disabled
00389 ; for any production system.
00390 show_stacktrace = On
00391