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