Nov. branch merge. Various features backported from stable, various bug fixes.
[mediawiki.git] / LocalSettings.sample
blobf5f05e65d65554d74bab50ddbe6b93c710b6c721
1 <?
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).  Do
9 # not check LocalSettings.php into CVS!  It is different for
10 # every installation, and must not be overridden.
12 # The most important setting is here: $IP is the installation
13 # path for the software.
16 $IP = "/usr/local/apache/htdocs/wiki";
18 if ( ! isset( $DP ) ) { $DP = $IP; }
19 include_once( "$DP/DefaultSettings.php" );
21 # You can customize a lot of URLs and paths, but you will
22 # almost certainly want to customize the following.  The
23 # ArticlePath one is especially useful if you want to use
24 # mod_redirect to make page-viewing URLs look static.
26 $wgServer           = "http://www.myhost.com";
27 $wgArticlePath      = "{$wgScript}?title=$1";
28 $wgEmergencyContact = "wikiadmin@myhost.com";
30 # MySQL settings
32 $wgDBserver         = "localhost";
33 $wgDBuser           = "wikiuser";
34 $wgDBname           = "wikidb";
35 $wgDBpassword       = "userpass";
36 $wgDBsqlpassword        = "sqlpass";
37 $wgDBminWordLen         = 3;     # Match this to your MySQL fulltext
38 $wgDBtransactions   = false; # Set to true if using InnoDB tables
40 # This code is still slightly experimental. Turn it off if "What links here"
41 # and similar stuff does not work.
42 $wgUseBetterLinksUpdate=true;
44 # Turn this on during database maintenance
45 # $wgReadOnly = true;
47 # Turn this on to get HTML debug comments
48 # $wgDebugComments      = true;
50 # If you want a non-English wiki, add a line like this
51 # $wgLanguageCode = "de";
53 $wgUseTeX                       = false;
54 $wgUseCategoryMagic = true ;
56 $wgLocalInterwiki   = "w";
58 $wgInputEncoding        = "ISO-8859-1";
59 $wgOutputEncoding       = "ISO-8859-1";
61 # Extremely high-traffic wikis may want to disable
62 # some database-intensive features here:
64 # $wgDisableTextSearch = true;
65 # $wgDisableCounters = true;
66 # $wgMiserMode          = true;
68 # The following three config variables are used to define
69 # the rights of users in your system. 
71 # If wgWhitelistEdit is set to true, only logged in users
72 # are allowed to edit articles.
73 # If wgWhitelistRead is set to true, only logged in users
74 # are allowed to read articles.
76 # wgWhitelistAccount lists user types that can add user accounts:
77 # "key" => 1 defines permission if user has right "key".
79 # Typical setups are:
81 # Everything goes (this is the default behaviour):
82 # $wgWhitelistEdit = false;
83 # $wgWhitelistRead = false;
84 # $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
86 # Invitation-only closed shop type of system
87 # $wgWhitelistEdit = true;
88 # $wgWhitelistRead = true;
89 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
91 # Public website, closed editorial team
92 # $wgWhitelistEdit = true;
93 # $wgWhitelistRead = false;
94 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );