Initial support for memcached.
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?
2 # DO NOT EDIT THIS FILE!
3 # To customize your installation, edit "LocalSettings.php".
4 # Note that since all these string interpolations are expanded
5 # before LocalSettings is included, if you localize something
6 # like $wgScriptPath, you must also localize everything that
7 # depends on it.
8
9 $wgServer = "http://" . getenv( "SERVER_NAME" );
10 $wgScriptPath = "/wiki";
11 $wgScript = "{$wgScriptPath}/wiki.phtml";
12 $wgRedirectScript = "{$wgScriptPath}/redirect.phtml";
13 $wgStyleSheetPath = "{$wgScriptPath}/style";
14 $wgStyleSheetDirectory = "{$IP}/style";
15 $wgArticlePath = "{$wgScript}?title=$1";
16 $wgUploadPath = "{$wgScriptPath}/upload";
17 $wgUploadDirectory = "{$IP}/upload";
18 $wgLogo = "{$wgUploadPath}/wiki.png";
19 $wgMathPath = "{$wgUploadPath}/math";
20 $wgMathDirectory = "{$wgUploadDirectory}/math";
21 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
22 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
23 #$wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>";
24 $wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>\r\nReply-To: webmaster@www.wikipedia.org";
25
26
27 # MySQL settings
28 #
29 $wgDBserver = "localhost";
30 $wgDBname = "wikidb";
31 $wgDBintlname = "intl";
32 $wgDBconnection = "";
33 $wgDBuser = "wikiuser";
34 $wgDBpassword = "userpass";
35 $wgDBsqluser = "sqluser";
36 $wgDBsqlpassword = "sqlpass";
37 $wgDBminWordLen = 4;
38 $wgDBtransactions = false; # Set to true if using InnoDB tables
39 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
40
41 # memcached settings
42 # See docs/memcached.doc
43 #
44 $wgUseMemCached = false;
45 $wgMemCachedServers = array( "127.0.0.1:11000" );
46 $wgMemCachedDebug = false;
47
48 # Language settings
49 #
50 $wgLanguageCode = "en";
51 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
52 $wgUseNewInterlanguage = false;
53 $wgInputEncoding = "ISO-8859-1";
54 $wgOutputEncoding = "ISO-8859-1";
55 $wgEditEncoding = "";
56 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
57 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
58 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
59 $wgAmericanDates = false; # Enable for English module to print dates
60 # as eg 'May 12' instead of '12 May'
61 $wgLocalInterwiki = "w";
62 $wgShowIPinHeader = true; # For non-logged in users
63 $wgUseDynamicDates = true; # Allows the user to pick their preferred date format
64
65 # Miscellaneous configuration settings
66 #
67 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
68 $wgDebugLogFile = "{$wgUploadDirectory}/log_dlJbnMZb";
69 $wgDebugComments = false;
70 $wgReadOnly = false;
71 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
72 $wgLogQueries = false;
73 $wgUseBetterLinksUpdate = true;
74
75
76 # The following three config variables are used to define
77 # the rights of users in your system.
78 #
79 # If wgWhitelistEdit is set to true, only logged in users
80 # are allowed to edit articles.
81 # If wgWhitelistRead is set to true, only logged in users
82 # are allowed to read articles.
83 #
84 # wgWhitelistAccount lists user types that can add user accounts:
85 # "key" => 1 defines permission if user has right "key".
86 #
87 # Typical setups are:
88 #
89 # Everything goes (this is the default behaviour):
90 # $wgWhitelistEdit = false;
91 # $wgWhitelistRead = false;
92 # $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
93 #
94 # Invitation-only closed shop type of system
95 # $wgWhitelistEdit = true;
96 # $wgWhitelistRead = true;
97 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
98 #
99 # Public website, closed editorial team
100 # $wgWhitelistEdit = true;
101 # $wgWhitelistRead = false;
102 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
103
104
105 # Client-side caching:
106 $wgCachePages = true; # Allow client-side caching of pages
107
108 # Set this to current time to invalidate all prior cached pages.
109 # Affects both client- and server-side caching.
110 $wgCacheEpoch = "20030516000000";
111
112 # Server-side caching:
113 # This will cache static pages for non-logged-in users
114 # to reduce database traffic on public sites.
115 # Must set $wgShowIPinHeader = false
116 $wgUseFileCache = false;
117 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
118
119 $wgCookieExpiration = 2592000;
120
121 $wgAllowExternalImages = true;
122 $wgMiserMode = false; # Disable database-intensive features
123 $wgUseTeX = false;
124 $wgProfiling = false; # Enable for more detailed by-function times in debug log
125
126 # We can serve pages compressed in order to save bandwidth,
127 # but this will increase CPU usage.
128 # Requires zlib support enabled in PHP.
129 $wgUseGzip = false;
130
131 $wgPasswordSalt = true; # For compatibility with old installations set to false
132
133 # Which namespaces should support subpages?
134 # See Language.php for a list of namespaces.
135 #
136 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
137 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1 );
138
139 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
140 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
141
142 ?>