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
19 # The most important setting is here: $IP is the installation
20 # path for the software. In the example below, the htdocs
21 # dir should be set as the DocumentRoot in the httpd.conf
22 # configuration file of Apache. To put it more simply:
23 # The directory below needs to be accessible in some way
24 # through your web browser.
26 $IP = "/usr/local/apache/htdocs/wiki";
28 if ( ! isset( $DP ) ) { $DP = $IP; }
29 include_once( "$DP/DefaultSettings.php" );
31 # You can customize a lot of URLs and paths, but you will
32 # almost certainly want to customize the following. The
33 # ArticlePath one is especially useful if you want to use
34 # mod_redirect to make page-viewing URLs look static.
36 $wgServer = "http://www.myhost.com";
37 $wgScriptPath = "/wiki";
38 $wgArticlePath = "{$wgScript}?title=$1";
39 $wgEmergencyContact = "wikiadmin@myhost.com";
43 # The user you specify here DOES NOT NEED TO EXIST.
44 # It is created by the installation script.
46 # $wgDBsqluser is used for queries through the
49 $wgDBserver = "localhost";
51 $wgDBuser = "wikiuser";
52 $wgDBpassword = "userpass";
53 $wgDBsqluser = "sqluser";
54 $wgDBsqlpassword = "sqlpass";
56 # Advanced DB settings
58 $wgDBminWordLen = 3; # Match this to your MySQL fulltext
59 $wgDBtransactions = false; # Set to true if using InnoDB tables
62 # Set $wgUseImageResize to true if you want to enable dynamic
63 # server side image resizing ("Thumbnails")
65 $wgUseImageResize = false;
67 # Resizing can be done using PHP's internal image libraries
68 # or using ImageMagick. The later supports more file formats
69 # than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
71 # Set $wgUseImageMagick to true to use Image Magick instead
72 # of the builtin functions
74 $wgUseImageMagick = false;
75 $wgImageMagickConvertCommand = "/usr/bin/convert";
77 # If you want a non-English wiki, add a line like this
78 # $wgLanguageCode = "de";
80 # Turn this on during database maintenance
83 # Turn this on to get HTML debug comments
84 # $wgDebugComments = true;
87 $wgUseCategoryMagic = true ;
89 $wgLocalInterwiki = "w";
91 $wgInputEncoding = "ISO-8859-1";
92 $wgOutputEncoding = "ISO-8859-1";
94 # Extremely high-traffic wikis may want to disable
95 # some database-intensive features here:
97 # $wgDisableTextSearch = true;
98 # $wgDisableCounters = true;
99 # $wgMiserMode = true;
101 # The following three config variables are used to define
102 # the rights of users in your system.
104 # If wgWhitelistEdit is set to true, only logged in users
105 # are allowed to edit articles.
106 # If wgWhitelistRead is set to true, only logged in users
107 # are allowed to read articles.
109 # wgWhitelistAccount lists user types that can add user accounts:
110 # "key" => 1 defines permission if user has right "key".
112 # Typical setups are:
114 # Everything goes (this is the default behaviour):
115 # $wgWhitelistEdit = false;
116 # $wgWhitelistRead = false;
117 # $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
119 # Invitation-only closed shop type of system
120 # $wgWhitelistEdit = true;
121 # $wgWhitelistRead = true;
122 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
124 # Public website, closed editorial team
125 # $wgWhitelistEdit = true;
126 # $wgWhitelistRead = false;
127 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );