Tiki multiples sur un seul serveur

Copy to clipboard
Note: Cette documentaiton est pour Tiki, version 1.8. Elle est surement valable pour des versions plus récentes, mais cela n'a pas été vérifié. Pour Tiki version 1.9 et ultérieurs, il existe une approche différente qui requiert l'édition du fichier db/tiki-db.phpet l'utilisation de nouvelles fonctionnalités dans tiki-install.php. La nouvelle variante est scantily documentée à  [http://tikiwiki.org/MultiTiki19].


Il est possible d'avoir de multiples Tikis sur un seul serveur.
Il y a 3 conditions majeures à  respecter pour cela:

  • Tiki doit avoir un accès à  une base de données différente pour chaque URL.
  • Apache doit savoir comment associerces multiples URL avec Tiki.
  • Vous devez créer les répertoires nécessaires avec le répertoir principal de Tiki.

Créer une une base de données distincte pour chaque URL

  • Chaque base de données aura un nom différent. Dans Mysql, la création de base de données est normalement effectuée avec la commande mysqladmin. Vous devriez avoir la permission de créer une base de données, ou bien vous aurez à  le demander à  l'administrateur du système. Pour indiquer à  Tiki quelle base de données va avec quelle URL, vous devez éditer un des fichiers PHP de Tiki. Le fichier db/local.php est dédié à  cela.

Configure Apache for multiple Tikis.

  • Typically, each Tiki will be accessed by a separate URL through Apache. Generally, the URLs are specified as virtual hosts — often in VirtualHost stanzas within Apache's configuration file. Remember to restart Apache after you have changed the configuration files. On Linux this is usually best done with the "apachectl" graceful command.

Create the necessary directories within Tiki's main directory.

  • On a Unix system, the easiest way to create the new directories and set permissions is by specifing more than one tikidomain when you run setup.sh. You would run setup.sh with a command like:
Copy to clipboard
./setup.sh apache apache 02755 domain1 domain2 domain3

Create the directories manually for Windows hosting.

It is possible to add additional tikis after you have installed a single Tiki. However, with the execption of the case in the following paragraph, you will have to manually create the needed directories. If you are hosting on a Unix system, you will also need to manually set the ownership and permissions.

http://tikiwiki.org/tiki-index.php?page=RecipeMultiTiki has a detailed recipe tested under ))RedHat((, version 8 and version 9 and Yellow Dog Linux, version 3.0. Root access to the Linux machine is required for this approach. If you follow the instructions exactly, there is a Python script you can use to add additional Tikis later.

There are a few minor problems that crop up with this approach. The admins for the various tikis have the ability to overwrite each others changes to the css. Ordinary. users with the same login names on different tikis would also be able to overwrite each other's changes to css files. Finally, you must use Apache's mod_rewrite if you want the different Tikis to have their own favicons.