System configuration | |
Introduced in Tiki8
New in Tiki10: Option to load the modules from a static files ( in profile YAML format like Module Handler. Search for "Module file" in the admin panel. New in Tiki11: A file db/preconfiguration.php can contain database credentials which are suggested at first Tiki installation. This allows providers of Virtual Servers to preconfigure mysql with different random passwords and usernames before the customers access the Tiki installer. New in Tiki15: Due to changes in Zend libraries, it is no longer possible to have hierarchical setting of configurations as before. In addition, configuration names can no longer contain dots. For example, client1.example.com will not work. Use client1 instead. Old configurations may not be usable in Tiki 15 and have to be rewritten.
New in Tiki20: Permit to hide preferences from admin panel New in Tiki22: Risky preferences are now hidden by default (System Administrator can un-hide)
|
Possible uses for Tiki Farms and hosting companies | |
|
Activate the system configuration | |
The system configuration must be enabled from the db/local.php file. Installations created from Tiki8 and beyond contain samples in the file created by default. Copy to clipboard
Copy to clipboard
If you do this example, make sure .htaccess is active so the tiki.ini.php can't be read or better yet, ensure it is called tiki.ini.php and refer to section Protecting the system configuration below. Copy to clipboard
If you do this example, put tiki.ini.php above the web directory. Ex.: if your db/local is here:
|
System configuration files contents | |
Copy to clipboard
|
Identifier | |
Copy to clipboard
Copy to clipboard
|
Values | |
Copy to clipboard
|
Protecting the system configuration file(s) | |
Note that will work only if your files filename contain Copy to clipboard
|
Define rules | |
Rules can be defined for various reasons; they may involve hiding or disabling specific preferences, among other purposes. Copy to clipboard
|
Disable classes of preferences | |
Preferences can be disabled by setting a value to each of them individually. However, this process may be long and will require maintenance with the evolutions of Tiki. Tiki allows to set multiple rule priorities, each verification priority can allow or deny a preference. Rules can be specified at various levels, just like the preference overrides above. Copy to clipboard
A draconian provider could use something like this: Copy to clipboard
Hide classes of preferences that are disabled
Copy to clipboard
|
Array syntax | |
Instead of… Copy to clipboard
Copy to clipboard
Copy to clipboard
|
Sample of glitchtip configuration | |
GlitchTip is an Open Source error tracking system, see: GlitchTip Copy to clipboard
Of course, replace the preference.error_tracking_dsn link with the DSN generated by GlitchTip
Copy to clipboard
|
Preconfiguration file | |
All there is to do is uncomment the appropriate lines in file db/preconfiguration.php and fill the appropriate values: Copy to clipboard |
Environment variable configuration | |
Copy to clipboard
|
In WikiSuite | |
If you are using WikiSuite, you have a GUI to edit:
Related
|