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