UserGuide: Configuration
This revision is from 2009/05/08 11:24. You can Restore it.
Navigation UserGuide
Configuration options are located in file _config.php. If you don't have _config.php file, you can edit index.php, configuration options are the same there.
These values are important and you should change them (or consider changing them):
- $WIKI_TITLE is the name of your Wiki site
- $PASSWORD is the password needed to write to pages (optionally to see pages). If left blank, no password is required to write (or read) pages.
- $PASSWORD_MD5 is secure way to store password with MD5 one way encryption. If not set $PASSWORD is used.
These are not so important:
- $TEMPLATE is path to the template
- $USE_AUTOLANG is set true, LionWiki tries to detect default language from visitor's browser
- $LANG is language code of language you want to use. Not all languages are supported, take a look into lang/ directory and see if your is supported. In case of some problem, english is used. In default configuration ($USE_AUTOLANG = true), this is the language used when language of user's browser is not supported.
- $PROTECTED_READ - if you want to protect pages not only from editing but also from seeing by unwanted visitors, you can set this variable to true. It's particularly useful when writing your private notebook or journal. For further discussion, see UserGuide: How to use PROTECTED_READ.
- $HISTORY_COMPRESSION - can contain three possible values - "plain" (no compression), "gzip" and "bzip2". Default is gzip because it's in every PHP installation and has reasonable compression ratio. Best results can be achieved with "bzip2" but it's not provided in every PHP installation. You can switch values anytime, LionWiki has no problem working with mixed history (one revision compressed, second not compressed etc.). - works only in LionWiki before version 3.
- $NO_HTML - optional XSS protection, prohibits use of {html} tag. Default is off, it's useful only when site is protected by password.
And these are almost useless :)
- $USE_META - if set false, LionWiki doesn't use Edit summary and IP info, i.e. no meta.dat files are saved and if they exist, they're not used
- $USE_HISTORY - if you want to disable history tracking (it's enabled by default), you do this by setting this variable to false
- $START_PAGE is page used as a starting point of your site.
- $SYNTAX_PAGE is page containing informations on syntax of LionWiki
And that's all. Further configuration options can be found in Plugins.
Plugins(Edit)
There are some plugins in default installation, you can see list of them and their description here. They are located (by default) in directory "plugins".
If you want to deactivate some plugin, you have at least three options:
- Delete plugin file.
- Rename them. LionWiki accepts plugins with specific filename - it must start with "wkp_" and end with ".php".
- Deactivate them in Admin plugin, like here.
Tags:
configuration, userguide