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