More detailed explanations
[lhc/web/wiklou.git] / LocalSettings.sample
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).
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 # 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.
25 #
26 $IP = "/usr/local/apache/htdocs/wiki";
27
28 if ( ! isset( $DP ) ) { $DP = $IP; }
29 include_once( "$DP/DefaultSettings.php" );
30
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.
35 #
36 $wgServer = "http://www.myhost.com";
37 $wgScriptPath = "/wiki";
38 $wgArticlePath = "{$wgScript}?title=$1";
39 $wgEmergencyContact = "wikiadmin@myhost.com";
40
41 # MySQL settings
42 #
43 # You should use a user with limited rights here,
44 # instead of the root account.
45 #
46 $wgDBserver = "localhost";
47 $wgDBuser = "wikiuser";
48 $wgDBname = "wikidb";
49 $wgDBpassword = "userpass";
50 $wgDBsqluser = "sqluser";
51 $wgDBsqlpassword = "sqlpass";
52
53 # Advanced DB settings
54 #
55 $wgDBminWordLen = 3; # Match this to your MySQL fulltext
56 $wgDBtransactions = false; # Set to true if using InnoDB tables
57
58 #
59 # Set $wgUseImageResize to true if you want to enable dynamic
60 # server side image resizing ("Thumbnails")
61 #
62 $wgUseImageResize = false;
63
64 # Resizing can be done using PHP's internal image libraries
65 # or using ImageMagick. The later supports more file formats
66 # than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
67 #
68 # Set $wgUseImageMagick to true to use Image Magick instead
69 # of the builtin functions
70 #
71 $wgUseImageMagick = false;
72 $wgImageMagickConvertCommand = "/usr/bin/convert";
73
74 # If you want a non-English wiki, add a line like this
75 # $wgLanguageCode = "de";
76
77 # Turn this on during database maintenance
78 # $wgReadOnly = true;
79
80 # Turn this on to get HTML debug comments
81 # $wgDebugComments = true;
82
83 $wgUseTeX = false;
84 $wgUseCategoryMagic = true ;
85
86 $wgLocalInterwiki = "w";
87
88 $wgInputEncoding = "ISO-8859-1";
89 $wgOutputEncoding = "ISO-8859-1";
90
91 # Extremely high-traffic wikis may want to disable
92 # some database-intensive features here:
93 #
94 # $wgDisableTextSearch = true;
95 # $wgDisableCounters = true;
96 # $wgMiserMode = true;
97
98 # The following three config variables are used to define
99 # the rights of users in your system.
100 #
101 # If wgWhitelistEdit is set to true, only logged in users
102 # are allowed to edit articles.
103 # If wgWhitelistRead is set to true, only logged in users
104 # are allowed to read articles.
105 #
106 # wgWhitelistAccount lists user types that can add user accounts:
107 # "key" => 1 defines permission if user has right "key".
108 #
109 # Typical setups are:
110 #
111 # Everything goes (this is the default behaviour):
112 # $wgWhitelistEdit = false;
113 # $wgWhitelistRead = false;
114 # $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
115 #
116 # Invitation-only closed shop type of system
117 # $wgWhitelistEdit = true;
118 # $wgWhitelistRead = true;
119 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
120 #
121 # Public website, closed editorial team
122 # $wgWhitelistEdit = true;
123 # $wgWhitelistRead = false;
124 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
125 ?>