UserGuide: Configuration
This revision is from 2009/10/03 22:12. You can Restore it.
Configuration options are located in config.php file. If you don't have config.php file, you can edit index.php, configuration options are the same there (this is not recommended however. All changes will be lost after upgrading).
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 encryption. If not set $PASSWORD is used instead.
These are not so important:
- $TEMPLATE is path to the template
- $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.
- $NO_HTML - optional XSS protection, prohibits use of {html} tag. Default is off, it's useful only when site is protected by password.
Other, almost useless configuration options can be found on More configuration page.
Plugins(Edit)
There are some plugins in default installation. They are located (by default) in directory "plugins".
Installation/Activation/deactivation(Edit)
Plugin installation and activation is done by simply copying the plugin file(s) to the "plugins" directory.
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.
Plugin configuration(Edit)
Plugins are basically PHP classes with some member variables — some of these member variables are configuration options. So if you want to change e.g. password in Admin plugin, open plugins/wkp_Admin.php in text editor and change $PASSWORD member variable.
Configuration in config.php(Edit)
Plugins configuration explained above has one serious flaw - when you upgrade your installation to newer version of LionWiki, all settings is lost. Since LionWiki 3.1 it is possible to configure plugins in config.php file:
$Admin["PASSWORD"] = "my_password";
So, you take a look at the member variable name in the plugin class and use it as a member of an array named after plugin.