Table of contents | |
|
Introduction | |
General instructions for installing multiple tikis on a single server are at InstallVirtualHosting. And instructions for installing multiple tikis without virtual hosting (i.e., using subdirectories), are at AkiraMultiTiki.
Here I show one way to install multiple tikis on a Fedora Core Linux server
In this example I go through the steps to create threee working tikis on
I illustrate how to set up three tikis: public.wikiplanet.com,
|
MySQL Setup | |
Each tiki instance will need a separate database in MySql Tiki also
The commands I issue as root are: # mysqladmin -uroot -p create tiki_public # mysqladmin -uroot -p create tiki_member # mysqladmin -uroot -p create tiki_staffThen I run ))MySql(( to set up the 'tiki' user with the correct permissions # mysql -uroot -p mysql> USE mysql; mysql> GRANT USAGE ON * . * TO "tiki"@"localhost" IDENTIFIED BY "password"; mysql> GRANT ALL PRIVILEGES ON `tiki_public` . * TO "tiki"@"localhost"; mysql> REVOKE GRANT OPTION ON `tiki_public` . * FROM "tiki"@"localhost"; mysql> GRANT ALL PRIVILEGES ON `tiki_member` . * TO "tiki"@"localhost"; mysql> REVOKE GRANT OPTION ON `tiki_member` . * FROM "tiki"@"localhost"; mysql> GRANT ALL PRIVILEGES ON `tiki_staff` . * TO "tiki"@"localhost"; mysql> REVOKE GRANT OPTION ON `tiki_staff` . * FROM "tiki"@"localhost"; mysql> exit |
Apache Configuration | |
Next I edit the Apache web server configuration /etc/httpd/conf/httpd.conf so that apache will know where to look for the tikis. |
VirtualHost | |
Further down, find the line with ))NameVirtualHost(( and change it to:
At the end of the httpd.conf, add the line: Include conf.d/*.vh
/etc/httpd/conf.d/public.wikiplanet.com.vh contains:
# apachectl graceful Don't worry about the warnings that the directories don't exist, we're going to make them next. |
Install Tikiwiki | |
Install Distribution | |
Get a distribution of Tikiwiki from sourceforge.net. Put it in /var/www/tikiwiki and make the soft links. # cd /www # ln -s tikiwiki public.wikiplanet.com # ln -s tikiwiki member.wikiplanet.com # ln -s tikiwiki staff.wikiplanet.com
|
Add Database Selection Code | |
Now you need to edit the code in db/local.php. # cd /www/tikiwiki/db Edit local.php. Mine reads:
|
Set Up files | |
Set up the files and directories for tiki: # cd /www/tikiwiki # ./setup.sh apache apache 02755 public.wikiplanet.com member.wikiplanet.com staff.wikiplanet.com # chown apache:apache *.php .
|
Run Tiki Install Script | |
Next we need to run the Tiki install script for the new wikis with a web browser. You must have dns working correctly, or you can edit /etc/hosts. In my case dns works, so I point Mozilla to: http://public.wikiplanet.com/tiki-install.php and run the install script. Do not choose to "remove" tiki-install.php yet! Repeat the procedure for the other two tiki's: member and staff. In the final case, "remove" the install script. |
Admin TikiWikis | |
That's all. Login to the tikis as admin and configure them. |
Notes | |
Limitations of Multi Tikis
Same Style Sheets for All Tikis Admin and users with the same names in different tikis may end up editing the same style sheets. One favicon for All Tikis Microsoft's Internet Explorer browser can't be told where to look for favicon; it always look in your document root. So all your sites hosted this way have to have the same favicon, or the web server has to change the favicon.ico request. See WikiShortcutIcon for use of shortcut icons.
Feel free to edit this page or add comments. - George Geller |