Loading...
 
Development

Development


Multiple site & database from one tikiwiki directory?

posts: 1

I have a question?
Is it possible to make multiple site & database from one tikiwiki directory?
I have made softlink for the tikiwiki directory and depends on the softlink I connect to different database modifying the code in db/local.php like the followings:

$host_tiki = 'localhost';
$user_tiki = 'user name';
$pass_tiki = 'password';
$tikidomain = '';

if ($_SERVER'REQUEST_URI' == "/tiki2_yolo/") {
$dbs_tiki = 'tiki_yolo';
} elseif ($_SERVER'REQUEST_URI' == "/tiki3/") {
$dbs_tiki = 'tiki3';
} else{
$dbs_tiki = 'tiki3';
}

It does connect to different database.
But there are so many problem left...

I just wonder is there anybody did this..

Thanks for help.

posts: 2881 United Kingdom

Hi!

UserPagegeorge.geller, has just done this himself, and written up the page RecipeMultiTiki.

Have a read and post back any problems

Damian cool


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting