Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

Multiple Tikis on a Single Server
3d browser Print

MultiTiki



Or how to set up Multiple Tikis on the same server with a single Tiki file set installation. For managing different tiki installations (several copies of the same installation files) in the same or different servers, see TRIM instead.

It is possible to have multiple Tikis on a single server and using a single copy of the installation file set. This can be done through:
  1. Multitiki using domains: using different domain names (i.e. http://site1.org/ (external link), http://site2.org/ (external link), ...). or
  2. Multitiki using subdirectories: having your several tikis in subdirectories of the same domain (i.e. http://yourhost/site1/ (external link), http://yourhost/site2/ (external link), ...)

There are some differences depending on the previous option, but there are three major requirements that must be satisfied in both cases:
  • 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.

1. 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.

See an example of edited local.php file for multikis (either 'multitiki using domains' or 'multitiki using subdirectories') at Manual Installation.

2. Configure the server to host multiple Tikis

2.1. Multitiki using domains

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.

2.2. Multitiki using subdirectories

Add symlinks. See the instructions in Manual installation for the time being (and/or improve this page).

3. 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:


Run setup.sh from the console, and follow instructions. You'll need to grant execution permission on that file the first time, as user with root privileges:
% chmod +x ./setup.sh


Then, just run it with no parameters in the command line, and it will start in interactive mode:
% ./setup.sh


From there follow instructions. Some of the options are explained below:
  • Group: Defaults to nobody or www-data or others (depending on the system, whatever the script will suggesst you as default) but may also be the standard group for the files as uploaded.
  • Multi: You should add here the names of your multitiki sites, separated by spaces (i.e. "site1 site2", or "www.site1.org www.site2.org (external link)", without the quotation marks. The script will create as many subdirectories as appropriate using this name for each tiki site under this multitiki installation.


If it doesn't work for any reason, you can do its job by hand. See Manual Installation if needed.



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.

4. Optionally, add .htaccess with rewrite rules

You optionally add some Clean URLs for your tikis.


5. Other Installation Procedures for Multiple TikiWikis

MultiTiki 3.0 Installation for Windows XP

See also
  • TRIM - Tiki Remote Instance Manager

Related older pages

Aliases
MultiTiki 1.9 | MultiTiki Akira | MultiTiki Virtual Hosting Install | MultiTiki Recipe

Contributors to this page: xavi25744 points  , edmund10798 points  , mizraith660 points  , marclaporte4496 points  , Xavi25744 points  , DavidBright , luci1341 Punkte  , george.geller2 points  and system .
Page last modified on Sunday 25 October, 2009 20:20:51 UTC by xavi25744 points .

To register

To have an account at this site, please register at Tikiwiki.org (external link), and then use that user name and password to log in here.

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):

Accessibility (WAI – 508)
Action log 2.x
Alert 3.x
Articles & Submissions
Backlinks
Banners
Blog
Bookmark
Browser Compatibility
Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Custom Home (and Groups Home Page)
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tikiwiki.org (Help System)
DogFood
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interaction
Inter-User Messages
InterTiki
Karma
Live Support
Login
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profile Manager
Quicktags
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Security
Semantic links 3.x
Shadowbox
Shoutbox
Slideshow
Smarty Template
Smiley
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
System log
Tags 2.x
Task
Tell a Friend + Social Bookmarking 2.x
TikiTests 2.x
Theme
Trackers
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
Webmail
Webservices
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval 2.x
Wiki Plugins extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
WYSIWYCA
WYSIWYG 2.x
XMLRPC