MultitikiWindowsXP

Install ))MultiTiki(( on Windows

Original Configuration: EasyPHP + Tikiwiki 1.9
Since most of the setup in Multitiki (setup.sh) is a Unix/Linux script, it cannot be run under Windows unless you have installed unix commands on Windows XP (there is a software for that). So most of the procedures to do multitiki under Windows must be done manually.

First step - Setup your local subdomains


Add your subdomains name to your host file. It should be located in
C:\Windows\System32\Drivers\etc\hosts

Add in the hosts files:

E.g.:
127.0.0.1 localhost
127.0.0.1 anothername
127.0.0.1 subdomain1.localhost
127.0.0.1 subdomain2.localhost
127.0.0.1 subdomain3.anothername

(localhost can be replaced by another name)

Add a file called "virtuals.inc" in tiki/db/ directory

and add the different new subdomains in the file

anothername
subdomain1.localhost
subdomain2.localhost
subdomain3.anothername


Create accordingly the directories anothername, subdomain1.localhost, subdomain2.localhost, subdomain.anothername in your tiki/db directory (C:\Program Files\EasyPHP\www\tiki\db)
Then copy the local.php in to these new directories and modify them to select accordingly which database to use. The Database name may be anything but may NOT contain "."'s.
For the new virtual server "anothername" this would be:
<?php
$db_tiki='mysql';
$dbversion_tiki='1.9';
$host_tiki='localhost';
$user_tiki='root';
$pass_tiki='';
$dbs_tiki='anothername';
?>


For the new virtual server "subdomain1.localhost" this would be:
<?php
$db_tiki='mysql';
$dbversion_tiki='1.9';
$host_tiki='localhost';
$user_tiki='root';
$pass_tiki='';
$dbs_tiki='subdomain1localhost';
?>


etc. for the other virtual hosts.

Create new databases by copying an existing database to a new location


E.g:
Copy C:\Program Files\EasyPHP\mysql\data\tiki to C:\Program Files\EasyPHP\mysql\data\anothername (same as mentioned above in the respective local.php).
Copy C:\Program Files\EasyPHP\mysql\data\tiki to C:\Program Files\EasyPHP\mysql\data\subdomain1localhost (same as mentioned above in the respective local.php).
Copy C:\Program Files\EasyPHP\mysql\data\tiki to C:\Program Files\EasyPHP\mysql\data\subdomain2localhost (same as mentioned above in the respective local.php).
Copy C:\Program Files\EasyPHP\mysql\data\tiki to C:\Program Files\EasyPHP\mysql\data\subdomain3anothername (same as mentioned above in the respective local.php).


Modify your Apache configuration (with Easy-Php or check httpd.conf in conf_files directory of EasyPHP)


Add following lines:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/Program Files/EasyPHP/www"
</VirtualHost>

<VirtualHost *:80>
ServerName anothername
DocumentRoot "C:/Program Files/EasyPHP/www/tiki"
</VirtualHost>

<VirtualHost *:80>
ServerName subdomain1.localhost
DocumentRoot "C:/Program Files/EasyPHP/www/tiki" !!path to the tiki directory 
</VirtualHost>

Etc. for the other virtual hosts.

Type your subdomain.localhost in your browser

and create a 'subdomain.localhost' directory in different directories needed to be created.

For virtual host "anothername" create following 7 sub-directories

'c:\program files\easyphp\www\tiki/backups/anothername'
'c:\program files\easyphp\www\tiki/dump/anothername'
'c:\program files\easyphp\www\tiki/img/wiki/anothername'
'c:\program files\easyphp\www\tiki/img/wiki_up/anothername'
'c:\program files\easyphp\www\tiki/modules/cache/anothername'
'c:\program files\easyphp\www\tiki/temp/anothername'
'c:\program files\easyphp\www\tiki/templates_c/anothername'

For virtual host "subdomain1.localhost" create following 7 sub-directories

'c:\program files\easyphp\www\tiki/backups/subdomain1.localhost'
'c:\program files\easyphp\www\tiki/dump/subdomain1.localhost'
'c:\program files\easyphp\www\tiki/img/wiki/subdomain1.localhost'
'c:\program files\easyphp\www\tiki/img/wiki_up/subdomain1.localhost'
'c:\program files\easyphp\www\tiki/modules/cache/subdomain1.localhost'
'c:\program files\easyphp\www\tiki/temp/subdomain1.localhost'
'c:\program files\easyphp\www\tiki/templates_c/subdomain1.localhost'

Etc. for the other virtual hosts.

Restart your Apache server


That's a good start. If anyone can create a batch file (from the setup.sh), that would be perfect.
Feel free to complete/modify the procedures.

Cheers.




Contributors to this page: deboever30 points  and Demoalt2 points  .
Page last modified on Wednesday 28 December 2005 20:04:31 CET by deboever30 points .

Switch Language

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki

Shoutbox

Torsten2431 points , 14:06 CEST, Sun 22 Apr. 2012: Next Webinar at Thursday, 17th of May 2012 (21:00 UTC)at http://tiki.org/live
Torsten2431 points , 11:43 CEST, Tue 10 Apr. 2012: Next Webinar at Thursday, 19th of April 2012 (21:00 UTC) at http://tiki.org/live
Jyhem2569 points , 13:07 CET, Fri 16 Mar. 2012: What happened to the BBB room ?
Torsten2431 points , 01:44 CET, Sat 25 Feb. 2012: Next Webinar at Thursday, 15th of March 2012 (21:00 UTC) at http://tiki.org/live
Torsten2431 points , 13:29 CET, Fri 10 Feb. 2012: Next webinar at Thursday, 16. of Feb. 2012 (21:00 UTC) at http://tiki.org/live