Disable $wgUseGzip by default since it's wildly incompatible with
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2
3 # $Id$
4 # DO NOT EDIT THIS FILE!
5 # To customize your installation, edit "LocalSettings.php".
6 # Note that since all these string interpolations are expanded
7 # before LocalSettings is included, if you localize something
8 # like $wgScriptPath, you must also localize everything that
9 # depends on it.
10
11 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
12 if( defined( "MEDIAWIKI" ) ) {
13
14 $wgVersion = '1.4-prealpha';
15
16 $wgSitename = 'MediaWiki'; # Please customize!
17 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
18
19
20 # check if server use https:
21 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
22
23 if ( @$wgCommandLineMode ) {
24 $wgServer = $wgProto.'://localhost';
25 } else {
26 $wgServer = $wgProto.'://' . $_SERVER['SERVER_NAME'];
27 if( $_SERVER['SERVER_PORT'] != 80 ) $wgServer .= ":" . $_SERVER['SERVER_PORT'];
28 }
29 unset($wgProto);
30
31 $wgScriptPath = '/wiki';
32
33 # Whether to support URLs like index.php/Page_title
34 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
35
36 # ATTN: Old installations used wiki.phtml and redirect.phtml -
37 # make sure that LocalSettings.php is correctly set!
38 $wgScript = "{$wgScriptPath}/index.php";
39 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
40
41 $wgStylePath = "{$wgScriptPath}/style";
42 $wgStyleDirectory = "{$IP}/style";
43 $wgStyleSheetPath = &$wgStylePath;
44 $wgStyleSheetDirectory = &$wgStyleDirectory;
45 $wgArticlePath = "{$wgScript}?title=$1";
46 $wgUploadPath = "{$wgScriptPath}/upload";
47 $wgUploadDirectory = "{$IP}/upload";
48 $wgLogo = "{$wgUploadPath}/wiki.png";
49 $wgMathPath = "{$wgUploadPath}/math";
50 $wgMathDirectory = "{$wgUploadDirectory}/math";
51 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
52 $wgEmergencyContact = 'wikiadmin@' . getenv( 'SERVER_NAME' );
53 $wgPasswordSender = 'Wikipedia Mail <apache@' . getenv( 'SERVER_NAME' ) . '>';
54
55 # For using a direct (authenticated) SMTP server connection.
56 # "host" => 'SMTP domain', "IDHost" => 'domain for MessageID', "port" => "25", "auth" => true/false, "username" => user, "password" => password
57 $wgSMTP = false;
58
59 # Database settings
60 #
61 $wgDBserver = 'localhost';
62 $wgDBname = 'wikidb';
63 $wgDBconnection = '';
64 $wgDBuser = 'wikiuser';
65 $wgDBtype = "mysql"; # "mysql" for working code and "PostgreSQL" for development/broken code
66 $wgDBprefix = ''; # Table name prefix
67
68 # Database load balancer
69 # This is a two-dimensional array, an array of server info structures
70 # Fields are:
71 # host: Host name
72 # dbname: Default database name
73 # user: DB user
74 # password: DB password
75 # type: "mysql" or "pgsql"
76 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
77 # flags: bit field
78 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
79 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
80 # DBO_TRX -- wrap entire request in a transaction
81 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
82 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
83 #
84 # Leave at false to use the single-server variables above
85 $wgDBservers = false;
86
87 # Sysop SQL queries
88 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
89 $wgDBsqluser = 'sqluser';
90 $wgDBsqlpassword = 'sqlpass';
91 $wgDBpassword = 'userpass';
92 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
93 $wgDBerrorLog = false; # File to log MySQL errors to
94
95 $wgDBminWordLen = 4;
96 $wgDBtransactions = false; # Set to true if using InnoDB tables
97 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
98 $wgSqlTimeout = 30;
99
100 $wgBufferSQLResults = true; # use buffered queries by default
101
102 # Other wikis on this site, can be administered from a single developer account
103 # Array, interwiki prefix => database name
104 $wgLocalDatabases = array();
105
106 # memcached settings
107 # See docs/memcached.doc
108 #
109 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
110 $wgUseMemCached = false;
111 $wgMemCachedServers = array( '127.0.0.1:11000' );
112 $wgMemCachedDebug = false;
113 $wgSessionsInMemcached = false;
114 $wgLinkCacheMemcached = false; # Not fully tested
115
116 # Language settings
117 #
118 $wgLanguageCode = 'en';
119 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php
120 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
121 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
122 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
123 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
124 $wgEditEncoding = '';
125 $wgMimeType = 'text/html';
126 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
127 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
128 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
129 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
130 $wgAmericanDates = false; # Enable for English module to print dates
131 # as eg 'May 12' instead of '12 May'
132 $wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
133 # of Western style (0-9) numerals in interface.
134
135 $wgLocalInterwiki = 'w';
136 $wgShowIPinHeader = true; # For non-logged in users
137 $wgMaxNameChars = 32; # Maximum number of bytes in username
138 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
139
140 # Translation using MediaWiki: namespace
141 # This will increase load times by 25-60% unless memcached is installed
142 $wgUseDatabaseMessages = true;
143 $wgMsgCacheExpiry = 86400;
144
145 $wgExtraSubtitle = '';
146 $wgSiteSupportPage = '';
147
148 # Miscellaneous configuration settings
149 #
150 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
151
152 # The debug log file should be not be publicly accessible if it is
153 # used, as it may contain private data.
154 $wgDebugLogFile = '';
155 $wgDebugRedirects = false;
156 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
157
158 $wgDebugComments = false;
159 $wgReadOnly = false;
160 $wgLogQueries = false;
161 $wgDebugDumpSql = false;
162
163 # Whether to disable automatic generation of "we're sorry,
164 # but there has been a database error" pages.
165 $wgIgnoreSQLErrors = false;
166
167 # Should [[Category:Dog]] on a page associate it with the
168 # category "Dog"? (a link to that category page will be
169 # added to the article, clicking it reveals a list of
170 # all articles in the category)
171 $wgUseCategoryMagic = true;
172
173 # disable experimental dmoz-like category browsing. Output things like:
174 # Encyclopedia > Music > Style of Music > Jazz
175 # FIXME: need fixing
176 $wgUseCategoryBrowser = false;
177
178 $wgEnablePersistentLC = false; # Obsolete, do not use
179 $wgCompressedPersistentLC = true; # use gzcompressed blobs
180 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
181
182 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
183
184 # wgHitcounterUpdateFreq sets how often page counters should be
185 # updated, higher values are easier on the database. A value of 1
186 # causes the counters to be updated on every hit, any higher value n
187 # cause them to update *on average* every n hits. Should be set to
188 # either 1 or something largish, eg 1000, for maximum efficiency.
189
190 $wgHitcounterUpdateFreq = 1;
191
192 # User rights
193 $wgWhitelistEdit = false; # true = user must login to edit.
194 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
195 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
196 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
197 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
198 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
199 # strtotime format, or "infinite" for an infinite block
200 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
201 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
202 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
203 $wgProxyScriptPath = "$IP/proxy_check.php";
204 $wgProxyMemcExpiry = 86400;
205 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
206 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
207 $wgAccountCreationThrottle = 0; # Number of accounts each IP address may create, 0 to disable. Requires memcached
208
209 # Client-side caching:
210 $wgCachePages = true; # Allow client-side caching of pages
211
212 # Set this to current time to invalidate all prior cached pages.
213 # Affects both client- and server-side caching.
214 $wgCacheEpoch = '20030516000000';
215
216 # Server-side caching:
217 # This will cache static pages for non-logged-in users
218 # to reduce database traffic on public sites.
219 # Must set $wgShowIPinHeader = false
220 $wgUseFileCache = false;
221 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
222
223 # When using the file cache, we can store the cached HTML gzipped to save disk
224 # space. Pages will then also be served compressed to clients that support it.
225 # THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
226 # the default LocalSettings.php! If you enable this, remove that setting first.
227 #
228 # Requires zlib support enabled in PHP.
229 $wgUseGzip = false;
230
231
232 $wgCookieExpiration = 2592000;
233
234 # Squid-related settings
235 #
236 # Enable/disable Squid
237 $wgUseSquid = false;
238 # If you run Squid3 with ESI support, enable this (default:false):
239 $wgUseESI = false;
240 # Internal server name as known to Squid, if different
241 # $wgInternalServer = 'http://yourinternal.tld:8000';
242 $wgInternalServer = $wgServer;
243 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
244 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
245 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
246 $wgSquidMaxage = 18000;
247 # A list of proxy servers (ips if possible) to purge on changes
248 # don't specify ports here (80 is default)
249 # $wgSquidServers = array('127.0.0.1');
250
251 # Maximum number of titles to purge in any one client operation
252 $wgMaxSquidPurgeTitles = 400;
253
254
255 # Set to set an explicit domain on the login cookies
256 # eg, "justthis.domain.org" or ".any.subdomain.net"
257 $wgCookieDomain = '';
258 $wgCookiePath = '/';
259 $wgDisableCookieCheck = false;
260
261 $wgAllowExternalImages = true;
262 $wgMiserMode = false; # Disable database-intensive features
263 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
264 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
265 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
266
267 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
268 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
269 # convert (ImageMagick) installed and available in the PATH.
270 # Please see math/README for more information.
271 $wgUseTeX = false;
272 $wgTexvc = './math/texvc'; # Location of the texvc binary
273
274 # Profiling / debugging
275 $wgProfiling = false; # Enable for more detailed by-function times in debug log
276 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
277 $wgProfileOnly = false; # Don't put non-profiling info into log file
278 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
279 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
280 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
281 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
282 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
283
284 $wgDisableCounters = false;
285 $wgDisableTextSearch = false;
286 $wgDisableFuzzySearch = false;
287 $wgDisableSearchUpdate = false; # If you've disabled search semi-permanently, this also disables updates to the table. If you ever re-enable, be sure to rebuild the search table.
288 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
289 $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work.
290 $wgDisableAnonTalk = false;
291
292 # Path to the GNU diff3 utility. If the file doesn't exist,
293 # edit conflicts will fall back to the old behaviour (no merging).
294 $wgDiff3 = '/usr/bin/diff3';
295
296 # We can also compress text in the old revisions table. If this is set on,
297 # old revisions will be compressed on page save if zlib support is available.
298 # Any compressed revisions will be decompressed on load regardless of this
299 # setting *but will not be readable at all* if zlib support is not available.
300 $wgCompressRevisions = false;
301
302 # This is the list of preferred extensions for uploading files. Uploading
303 # files with extensions not in this list will trigger a warning.
304 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
305
306 # Files with these extensions will never be allowed as uploads.
307 $wgFileBlacklist = array(
308 # HTML may contain cookie-stealing JavaScript and web bugs
309 'html', 'htm',
310 # PHP scripts may execute arbitrary code on the server
311 'php', 'phtml', 'php3', 'php4', 'phps',
312 # Other types that may be interpreted by some servers
313 'shtml', 'jhtml', 'pl', 'py',
314 # May contain harmful executables for Windows victims
315 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
316
317 # This is a flag to determine whether or not to check file extensions on
318 # upload.
319 $wgCheckFileExtensions = true;
320
321 # If this is turned off, users may override the warning for files not
322 # covered by $wgFileExtensions.
323 $wgStrictFileExtensions = true;
324
325 # Warn if uploaded files are larger than this
326 $wgUploadSizeWarning = 150000;
327
328 $wgPasswordSalt = true; # For compatibility with old installations set to false
329
330 # Which namespaces should support subpages?
331 # See Language.php for a list of namespaces.
332 #
333 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
334 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
335
336 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
337 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
338
339 # If set, a bold ugly notice will show up at the top of every page.
340 $wgSiteNotice = "";
341
342 # Whether to allow anonymous users to set changes to 'minor'
343 $wgAllowAnonymousMinor = false;
344
345 ## Set $wgUseImageResize to true if you want to enable dynamic
346 ## server side image resizing ("Thumbnails")
347 #
348 $wgUseImageResize = false;
349
350 ## Resizing can be done using PHP's internal image libraries
351 ## or using ImageMagick. The later supports more file formats
352 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
353 ##
354 ## Set $wgUseImageMagick to true to use Image Magick instead
355 ## of the builtin functions
356 #
357 $wgUseImageMagick = false;
358 $wgImageMagickConvertCommand = '/usr/bin/convert';
359
360 # PHPTal is a library for page templates. MediaWiki includes
361 # a recent PHPTal distribution. It is required to use the
362 # Monobook (default) skin.
363 #
364 # Currently it does not work on PHP5.
365 $wgUsePHPTal = version_compare( phpversion(), "5.0", "lt" );
366
367 if( !isset( $wgCommandLineMode ) ) {
368 $wgCommandLineMode = false;
369 }
370
371 # Show seconds in Recent Changes
372 $wgRCSeconds = false;
373
374 # Log IP addresses in the recentchanges table
375 $wgPutIPinRC = false;
376
377 # RDF metadata toggles
378 $wgEnableDublinCoreRdf = false;
379 $wgEnableCreativeCommonsRdf = false;
380
381 # Override for copyright metadata.
382 # TODO: these options need documentation
383 $wgRightsPage = NULL;
384 $wgRightsUrl = NULL;
385 $wgRightsText = NULL;
386 $wgRightsIcon = NULL;
387
388 # Set this to true if you want detailed copyright information forms on Upload.
389 $wgUseCopyrightUpload = false;
390
391 # Set this to false if you want to disable checking that detailed
392 # copyright information values are not empty.
393 $wgCheckCopyrightUpload = true;
394
395
396 # Set this to false to avoid forcing the first letter of links
397 # to capitals. WARNING: may break links! This makes links
398 # COMPLETELY case-sensitive. Links appearing with a capital at
399 # the beginning of a sentence will *not* go to the same place
400 # as links in the middle of a sentence using a lowercase initial.
401 $wgCapitalLinks = true;
402
403 # List of interwiki prefixes for wikis we'll accept as sources
404 # for Special:Import (for sysops). Since complete page history
405 # can be imported, these should be 'trusted'.
406 $wgImportSources = array();
407
408 # Set this to the number of authors that you want to be credited below an
409 # article text. Set it to zero to hide the attribution block, and a
410 # negative number (like -1) to show all authors. Note that this will
411 # require 2-3 extra database hits, which can have a not insignificant
412 # impact on performance for large wikis.
413 $wgMaxCredits = 0;
414
415 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
416 # Otherwise, link to a separate credits page.
417 $wgShowCreditsIfMax = true;
418
419 # Text matching this regular expression will be recognised as spam
420 # See http://en.wikipedia.org/wiki/Regular_expression
421 $wgSpamRegex = false;
422 # Similarly if this function returns true
423 $wgFilterCallback = false;
424
425 # Go button goes straight to the edit screen if the article doesn't exist
426 $wgGoToEdit = false;
427
428 # Allow limited user-specified HTML in wiki pages?
429 # It will be run through a whitelist for security.
430 # Set this to false if you want wiki pages to consist only of wiki
431 # markup. Note that replacements do not yet exist for all HTML
432 # constructs.
433 $wgUserHtml = true;
434
435 # Allow raw, unchecked HTML in <html>...</html> sections.
436 # THIS IS VERY DANGEROUS on a publically editable site.
437 # Don't enable it unless you've restricted editing to trusted
438 # users only.
439 $wgRawHtml = false;
440
441 # $wgUseTidy: use tidy to make sure HTML output is sane.
442 # This should only be enabled if $wgUserHtml is true.
443 # tidy is a free tool that fixes broken HTML.
444 # See http://www.w3.org/People/Raggett/tidy/
445 # $wgTidyBin should be set to the path of the binary and
446 # $wgTidyConf to the path of the configuration file.
447 # $wgTidyOpts can include any number of parameters.
448 $wgUseTidy = false;
449 $wgTidyBin = 'tidy';
450 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
451 $wgTidyOpts = '';
452
453 # See list of skins and their symbolic names in language/Language.php
454 $wgDefaultSkin = 'monobook';
455
456 # Whether or not to allow real name fields. Defaults to true.
457 $wgAllowRealName = true;
458
459 # Extensions
460 $wgExtensionFunctions = array();
461
462 # Allow user Javascript page?
463 $wgAllowUserJs = true;
464
465 # Allow user Cascading Style Sheets (CSS)?
466 $wgAllowUserCss = true;
467
468 # Filter for Special:Randompage. Part of a WHERE clause
469 $wgExtraRandompageSQL = false;
470
471 # Allow the "info" action, very inefficient at the moment
472 $wgAllowPageInfo = false;
473
474 # Maximum indent level of toc.
475 $wgMaxTocLevel = 999;
476
477 # Recognise longitude/latitude coordinates
478 $wgUseGeoMode = false;
479
480 # Validation for print or other production versions
481 $wgUseValidation = false;
482
483 # Use external C++ diff engine (module wikidiff from the
484 # extensions package)
485 $wgUseExternalDiffEngine = false;
486
487 # Use RC Patrolling to check for vandalism
488 $wgUseRCPatrol = true;
489
490 } else {
491 die();
492 }
493 ?>