Database::makeList() now checks in LIST_AND mode if supplied list item
[lhc/web/wiklou.git] / LocalSettings.sample
1 <?php
2 # Local settings work like this: the file LocalSettings.sample
3 # should be copied to LocalSettings.php in the source directory
4 # and edited for your local file system settings and software
5 # configuration preferences. The install script will copy it to
6 # the installation path, but a copy should also remain in the
7 # source tree so that maintenance scripts can refer to it (you
8 # may want to make it a symbolic link after installation).
9
10 # Developers: Do not check LocalSettings.php into CVS! Make
11 # changes to LocalSettings.sample instead.
12
13 # Note that you will find many more settings in
14 # includes/DefaultSettings.php - if you want to change any of
15 # them, copy the variables into LocalSettings.php, and change them
16 # here, otherwise your settings will be overwritten with your
17 # next update.
18
19 # You can get some useful informations online at:
20 # http://meta.wikipedia.org/wiki/LocalSettings.php
21
22 # The most important setting is here: $IP is the installation
23 # path for the software. In the example below, the htdocs
24 # dir should be set as the DocumentRoot in the httpd.conf
25 # configuration file of Apache. To put it more simply:
26 # The directory below needs to be accessible in some way
27 # through your web browser.
28 #
29 $IP = "/usr/local/apache/htdocs/wiki";
30
31 ## Don't change this bit; install.php needs it.
32 #
33 if ( ! isset( $DP ) ) { $DP = $IP; }
34 include_once( "$DP/DefaultSettings.php" );
35
36 # If you wish to enable third-party extensions, you do that
37 # using an include_once statement here. Make sure, however,
38 # that DefaultSettings.php (above) is included first.
39
40 ## Please customize!
41 #
42 $wgSitename = "MediaWiki";
43
44 # You can customize a lot of URLs and paths, but you will
45 # almost certainly want to customize the following. The
46
47 # Normally the server will be auto-detected, but you can
48 # force the base URL. Don't forget http:// (or https://)!
49 # If you are running php as CGI, the $_SERVER variable might
50 # not be set, you will then need to manually set $wgServer
51 #
52 #$wgServer = "http://www.myhost.com";
53
54 ## The location of the main script, you need this to be correct!
55 #
56 $wgScriptPath = "/wiki";
57 $wgScript = "{$wgScriptPath}/index.php";
58 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
59
60 # ArticlePath one is especially useful if you want to use
61 # mod_redirect to make page-viewing URLs look static.
62 #
63 $wgArticlePath = "{$wgScript}/$1";
64 # $wgArticlePath = "/wiki/$1"; # Prettier if you're setup for it
65
66 ## Normally you don't need to change these once the above are set...
67 #
68 $wgStylePath = "{$wgScriptPath}/skins";
69 $wgStyleSheetDirectory = "{$IP}/skins";
70
71 $wgUploadPath = "{$wgScriptPath}/upload";
72 $wgUploadDirectory = "{$IP}/upload";
73 $wgLogo = "{$wgStylePath}/images/wiki.png";
74
75 ## Preferably these addresses should be able to receive mail asking for help
76 #
77 $wgEmergencyContact = "wikiadmin@" . $_SERVER['SERVER_NAME'];
78 $wgPasswordSender = "Wikipedia Mail <apache@" . $_SERVER['SERVER_NAME'] . ">";
79
80 # MySQL settings
81 #
82 # The user you specify here DOES NOT NEED TO EXIST.
83 # It is created by the installation script, if
84 # you have root privileges on your database.
85 #
86 # IF on the other hand you have only limited privs
87 # on your DB and have to do a manual install, use
88 # your existing username and password. Be sure this
89 # file doesn't get left around on the web legible...
90 #
91 # $wgDBsqluser is used for queries through the
92 # web interface. It is also created by the script.
93 # Unlike the regular user, it has no write
94 # permissions and can not access passwords.
95 #
96 $wgDBserver = "localhost";
97 $wgDBname = "wikidb";
98 $wgDBuser = "wikiuser";
99 $wgDBpassword = "userpass"; # Use a better password! ;)
100 $wgDBsqluser = "sqluser";
101 $wgDBsqlpassword = "sqlpass";
102
103 ## Minimum word length for the full-text search.
104 ## NOTICE: Changing this value does not suffice. You must
105 ## also change the corresponding setting in MySQL itself.
106 ## See the MySQL manual for information on how to do so.
107 #
108 $wgDBminWordLen = 3;
109
110 ## Set these to true to turn on some optimizations when using
111 ## MySQL 4.x:
112 #
113 # $wgDBmysql4 = true;
114 # $wgEnablePersistentLC = true;
115
116 ## You can customize the interface messages through the wiki;
117 ## see [[MediaWiki:All pages]]. (This requires a sysop account.)
118 ## This causes a performance hit, though; if you don't need it,
119 ## feel free to turn it off:
120 #
121 # $wgUseDatabaseMessages = false;
122
123 ## The links in the navigation sidebar can be configured.
124 ## To add a link to the sidebar, add a line like the following
125 #
126 # $wgNavigationLinks[] = array( 'text' => 'helpdesk', 'href' => 'helpdesk-url' );
127 #
128 ## and create two MediaWiki:-pages with the corresponding names, e.g.
129 ## MediaWiki:helpdesk="User help desk"
130 ## MediaWiki:helpdesk-url="YourProject:Help_desk"
131
132 ## Set $wgUseImageResize to true if you want to enable dynamic
133 ## server side image resizing ("Thumbnails")
134 #
135 # $wgUseImageResize = true;
136
137 ## Resizing can be done using PHP's internal image libraries
138 ## or using ImageMagick. The later supports more file formats
139 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
140 ##
141 ## Set $wgUseImageMagick to true to use Image Magick instead
142 ## of the builtin functions
143 #
144 # $wgUseImageMagick = true;
145 # $wgImageMagickConvertCommand = "/usr/bin/convert";
146
147 ## If you have the appropriate support software installed
148 ## you can enable inline LaTeX equations:
149 # $wgUseTeX = true;
150 # $wgMathPath = "{$wgUploadPath}/math";
151 # $wgMathDirectory = "{$wgUploadDirectory}/math";
152 # $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
153
154 $wgLocalInterwiki = $wgSitename;
155
156 ## If you want a non-English wiki, add a line like this
157 # $wgLanguageCode = "de";
158
159 ## If you want a different default time zone than UTC, add a line like this
160 # $wgLocalTZoffset = -5; # (EST, for example)
161
162 ## Character encoding: normally auto-selected by the language.
163 ## English, German, Danish, Dutch, French, Spanish, and Swedish
164 ## will be in ISO-8859-1 by default, all other languages in
165 ## UTF-8 encoding. UTF-8 is more flexible, but some older browsers
166 ## have trouble with it. You can force an English-language wiki
167 ## to UTF-8 by uncommenting the lines below. The other languages
168 ## mentioned above might not work properly this way without
169 ## additional tweaking.
170 #
171 # $wgInputEncoding = "UTF-8";
172 # $wgOutputEncoding = "UTF-8";
173
174 ## Default skin: you can change the default skin. Use the internal symbolic
175 ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
176 # $wgDefaultSkin = 'monobook';
177
178 ## Extremely high-traffic wikis may want to disable
179 ## some database-intensive features here:
180 #
181 # $wgDisableTextSearch = true;
182 # $wgDisableCounters = true;
183 # $wgMiserMode = true;
184
185 ## The following three config variables are used to define
186 ## the rights of users in your system.
187 #
188 # If wgWhitelistEdit is set to true, only logged in users
189 # are allowed to edit articles.
190 # If wgWhitelistRead is set to an array of page names, only logged in users
191 # are allowed to read pages *not in the list*.
192 #
193 # wgWhitelistAccount lists user types that can add user accounts:
194 # "key" => 1 defines permission if user has right "key".
195 #
196 # Typical setups are:
197 #
198 # Everything goes (this is the default behaviour):
199 # $wgWhitelistEdit = false;
200 # $wgWhitelistRead = false;
201 # $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
202 #
203 # Invitation-only closed shop type of system
204 # $wgWhitelistEdit = true;
205 # Pages anonymous user may see:
206 # $wgWhitelistRead = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
207 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
208 #
209 # Public website, closed editorial team
210 # $wgWhitelistEdit = true;
211 # $wgWhitelistRead = false;
212 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
213
214
215 # Squid-related settings
216 #
217 # Enable/disable Squid
218 # $wgUseSquid = true;
219 # If you run Squid3 with ESI support, enable this (default:false):
220 # $wgUseESI = true;
221 # Internal server name as known to Squid, if different
222 # $wgInternalServer = 'http://yourinternal.tld:8000';
223 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
224 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
225 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
226 # $wgSquidMaxage = 18000;
227 # A list of proxy servers (ips if possible) to purge on changes
228 # don't specify ports here (80 is default)
229 # $wgSquidServers = array('127.0.0.1');
230 ?>