Loading...
 
Skip to main content

History: MultiTiki

Preview of version: 16

Note: This documentation is for Tiki, version 1.8. It probably works for earlier versions, but I haven't tested it. For Tiki version 1.9 and later there is a different approach that requires editing db/tiki-db.php and using some new features in tiki-install.php. The newer variant is scantily documented in the following pages (at MultiTiki 1.9).

Multiple Tikis on a Single Server

It is possible to have multiple Tikis on a single server. There are three major requirements that must be satisfied:

  • Tiki must have an access to a separate database for each URL.
  • Apache must know how to associate multiple URLs with the Tiki.
  • You must create the necessary directories with the Tiki's main directory.

Create a separate database for each url.

  • Each database will have a different name. In mysql, creating the databases is normally accomplished with the mysqladmin command. You may have permission to create the database, or you may have to ask a system administrator. To actually tell Tiki which database goes with which URL you have to edit one of Tiki's PHP files. The file db/local.php is designed for this purpose.

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.
  • On shared hosting, you can use "parked a domain" to have extra domains pointing to the same TikiWiki installation.

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.

Related pages

History

Information Version
Marc Laporte Obsolete 41
Marc Laporte 40
Jonny Bradley 39
Jonny Bradley 38
Jonny Bradley added multitiki console commands info 37
Marc Laporte AutoTOC 36
Xavier de Pedro 35
Xavier de Pedro 34
Xavier de Pedro 33
Frank Guthausen typo fixed 32
Marc Laporte 31
Xavier de Pedro 30
Xavier de Pedro 29
Xavier de Pedro 28
Xavier de Pedro 27
Marc Laporte 26
Marc Laporte 25
Ed 24
Ed 23
Xavier de Pedro 22
Xavier de Pedro 21
mizraith 20
Xavier de Pedro 19
Xavier de Pedro 18
Xavier de Pedro 17
Marc Laporte 16
Xavier de Pedro 15
george.geller 14
george.geller 13
george.geller 12
george.geller 11
DavidBright 10
luciash d' being 🧙 typo fix 8
george.geller 6
george.geller 5
george.geller 4
george.geller 3
system created from stucture 2