Please contact us if you would like to help out.
TRIM is the Tiki Remote Instance Manager. It permits to handle many tasks (install, update, backup, check security, etc.) with minimum effort. While TRIM is designed to manage Tikis remotely, it can also manage on the same server. Full documentation is available at https://doc.tiki.org/TRIM
This document will guide you to do some of the main operations in the context of WikiSuite (and thus, TRIM on ClearOS). So instead of installing Tiki directly, you install TRIM and use it to install one or many Tiki instances. You'll likely also be interested in TRIM and Syncthing for automated offsite backups
Assumptions
- This document assumes you know basic Command Line Interface (CLI)
- You have already set up your server properly to install one Tiki instance as per How to install Tiki Wiki CMS Groupware on ClearOS
Setup TRIM
Requirements
TRIM requires PHP 5 and the make command. Here is a tool to check server has all the dependencies: https://doc.tiki.org/Server-Check
On ClearOS, you should do the following:
- How to install a PHP version picker on ClearOS and then, you can pick the PHP version as per the Requirements
- How to install MariaDB on ClearOS
- Firewall: You should allow HTTP (port 80) and HTTPS (port 443): How to configure your Firewall on ClearOS
- How to install Subversion (SVN) client on ClearOS
- How to install Rsync on ClearOS
- How to install bzip2 on ClearOS
Installation
mkdir /var/local/trim
cd /var/local/trim
svn co https://svn.code.sf.net/p/tikiwiki/code/trim .
As of 2018-10-20, TRIM requires more than the default PHP 5.4, so you need to set to PHP 7.1, but this will be reverted, and Tiki Manager will require PHP 7.1 (Tiki Manager is like TRIM 2.0)
nano .phpenv
Type 71, and then exit (with save)
If you wanted PHP 5.6, you'd indicate 56, and PHP 7.0 is 70
For websites, you just pick this value in the web interface. But since this is a non-web accessible directory, it is done manually
Set up websites on ClearOS
It is important that your Tiki site not be the default website because TRIM's defaults are to use virtual domains. The first website is in /var/www/html and the following ones has this pattern: /var/www/virtual/example.org/html/
make instance
To create an instance, you need to type: make instance
pick local
you'll need the MariaDB root password
Updating or upgrading
https://doc.tiki.org/TRIM#make_update
https://doc.tiki.org/TRIM#make_upgrade