Tweak to image upload message: show example image syntax that's ready for copy\&paste
[mediawiki.git] / LocalSettings.sample
blob68ec52c3d0713db93767013bf6f20756ed6d206b
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). 
10 # Developers: Do not check LocalSettings.php into CVS! Make
11 # changes to LocalSettings.sample instead.
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.
19 # You can get some useful informations online at:
20 # http://meta.wikipedia.org/wiki/LocalSettings.php
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.
30 $IP = "/usr/local/apache/htdocs/wiki";
33 ## Don't change this bit; install.php needs it.
35 if ( ! isset( $DP ) ) { $DP = $IP; }
36 include_once( "$DP/DefaultSettings.php" );
38 ## Please customize!
40 $wgSitename         = "MediaWiki";
42 # You can customize a lot of URLs and paths, but you will
43 # almost certainly want to customize the following.  The
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
50 #$wgServer           = "http://www.myhost.com";
52 ## The location of the main script, you need this to be correct!
54 $wgScriptPath       = "/wiki";
55 $wgScript           = "{$wgScriptPath}/index.php";
56 $wgRedirectScript   = "{$wgScriptPath}/redirect.php";
58 # ArticlePath one is especially useful if you want to use
59 # mod_redirect to make page-viewing URLs look static.
61 $wgArticlePath      = "{$wgScript}/$1";
62 # $wgArticlePath     = "/wiki/$1"; # Prettier if you're setup for it
64 ## Normally you don't need to change these once the above are set...
66 $wgStylePath   = "{$wgScriptPath}/style";
67 $wgStyleSheetDirectory = "{$IP}/style";
69 $wgUploadPath       = "{$wgScriptPath}/upload";
70 $wgUploadDirectory      = "{$IP}/upload";
71 $wgLogo                         = "{$wgStylePath}/images/wiki.png";
73 ## Preferably these addresses should be able to receive mail asking for help
75 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
76 $wgPasswordSender       = "Wikipedia Mail <apache@" . getenv( "SERVER_NAME" ) . ">";
78 # MySQL settings
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.
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...
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.
94 $wgDBserver         = "localhost";
95 $wgDBname           = "wikidb";
96 $wgDBuser           = "wikiuser";
97 $wgDBpassword       = "userpass"; # Use a better password! ;)
98 $wgDBsqluser        = "sqluser";
99 $wgDBsqlpassword        = "sqlpass";
101 ## Advanced DB settings
103 $wgDBminWordLen         = 3;     # Match this to your MySQL fulltext
105 ## Set these to true to turn on some optimizations when using
106 ## MySQL 4.x:
108 # $wgDBmysql4                   = true;
109 # $wgEnablePersistentLC = true;
111 ## You can customize the interface messages through the wiki;
112 ## see [[MediaWiki:All pages]]. (This requires a sysop account.)
113 ## This causes a performance hit, though; if you don't need it,
114 ## feel free to turn it off:
116 # $wgUseDatabaseMessages = false;
118 ## Set $wgUseImageResize to true if you want to enable dynamic
119 ## server side image resizing ("Thumbnails")
121 # $wgUseImageResize             = true;
123 ## Resizing can be done using PHP's internal image libraries
124 ## or using ImageMagick. The later supports more file formats
125 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
127 ## Set $wgUseImageMagick to true to use Image Magick instead
128 ## of the builtin functions
130 # $wgUseImageMagick             = true;
131 # $wgImageMagickConvertCommand    = "/usr/bin/convert";
133 ## If you have the appropriate support software installed
134 ## you can enable inline LaTeX equations:
135 # $wgUseTeX                     = true;
136 # $wgMathPath         = "{$wgUploadPath}/math";
137 # $wgMathDirectory    = "{$wgUploadDirectory}/math";
138 # $wgTmpDirectory     = "{$wgUploadDirectory}/tmp";
140 $wgLocalInterwiki   = $wgSitename;
142 ## If you want a non-English wiki, add a line like this
143 # $wgLanguageCode = "de";
145 ## Character encoding: normally auto-selected by the language.
146 ## English, German, Danish, Dutch, French, Spanish, and Swedish
147 ## will be in ISO-8859-1 by default, all other languages in
148 ## UTF-8 encoding. UTF-8 is more flexible, but some older browsers
149 ## have trouble with it. You can force an English-language wiki
150 ## to UTF-8 by uncommenting the lines below. The other languages
151 ## mentioned above might not work properly this way without
152 ## additional tweaking.
154 # $wgInputEncoding      = "UTF-8";
155 # $wgOutputEncoding     = "UTF-8";
157 ## Default skin: you can change the default skin. Use the internal symbolic
158 ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
159 # $wgDefaultSkin = 'monobook';
161 ## Extremely high-traffic wikis may want to disable
162 ## some database-intensive features here:
164 # $wgDisableTextSearch = true;
165 # $wgDisableCounters = true;
166 # $wgMiserMode          = true;
168 ## The following three config variables are used to define
169 ## the rights of users in your system. 
171 # If wgWhitelistEdit is set to true, only logged in users
172 # are allowed to edit articles.
173 # If wgWhitelistRead is set to an array of page names, only logged in users
174 # are allowed to read pages *not in the list*.
176 # wgWhitelistAccount lists user types that can add user accounts:
177 # "key" => 1 defines permission if user has right "key".
179 # Typical setups are:
181 # Everything goes (this is the default behaviour):
182 # $wgWhitelistEdit = false;
183 # $wgWhitelistRead = false;
184 # $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
186 # Invitation-only closed shop type of system
187 # $wgWhitelistEdit = true;
188 # $wgWhitelistRead = array ( ":Main_Page" );
189 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
191 # Public website, closed editorial team
192 # $wgWhitelistEdit = true;
193 # $wgWhitelistRead = false;
194 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
197 # Squid-related settings
199 # Enable/disable Squid
200 # $wgUseSquid = true;
201 # If you run Squid3 with ESI support, enable this (default:false):
202 # $wgUseESI = true;
203 # Internal server name as known to Squid, if different
204 # $wgInternalServer = 'http://yourinternal.tld:8000';
205 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or 
206 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
207 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
208 # $wgSquidMaxage = 18000;
209 # A list of proxy servers (ips if possible) to purge on changes
210 # don't specify ports here (80 is default)
211 # $wgSquidServers = array('127.0.0.1');