Loading...
 
Architecture / Installation

Architecture / Installation


is it possible multitiki without different virtualhost names?

posts: 957

Hi:

I'd like to know whether it is possible to setup tiki18x as multitiki under different subdirectories of the same hostname, instead of configuring different virtual hosts.

I mean, if our host was: host.net, and we want to run sites for "site1", "site2", and "site3", how do we need to set it up so that the different tikis from the same server installation run under
http://host.org/site1
http://host.org/site2
http://host.org/site3
?

(instead of http://site1.host.org, http://site2.host.org, http://site3.host.org)

I've been able to run setup.sh as described in http://tikiwiki.org/tiki-index.php?page=RecipeMultiTiki, but not configure local.php properly (I don't know much php).
for instance, I've written down

...

if ($_SERVER%22HTTP_HOST%22 == "host.org/site1") {
...

but it doesn't work, server answers:

ADONewConnection: Unable to load database driver ''

Fatal error: Call to a member function on a non-object in /home/httpd/tiki18/tiki-install.php on line 396

Any hints?
Xavi

posts: 10 United Kingdom

Hello

You can if you use Apache aliases for the subfolders, but having actuall subfolders would be impossible as where would you install the code?

Berry

posts: 957

> berryweb:
> Hello
>
> You can if you use Apache aliases for the subfolders, but having actuall subfolders would be impossible as where would you install the code?
>
> Berry
>
I installed the code in one dir. out of htdocs root, and simlink dirs under htdoc path to real dir. I.e:
install dir:
/home/httpd/tiki18/

Multitiki intended installations (simlinked to the previous):

/home/httpd/htdocs/site1
/home/httpd/htdocs/site2
...

posts: 957

By the way, there are nice instructions on howto do this at AkiraMultiTiki
However, I got an error there also, after following her suggestions:

===
Fatal error: Cannot redeclare extracttoppath() in /home/httpd/tiki18/db/local.php on line 24
===

No idea what's wrong...


posts: 957

> berryweb:
> Hello
>
> You can if you use Apache aliases for the subfolders, but having actuall subfolders would be impossible as where would you install the code?
>
> Berry
>
I installed the code in one dir. out of htdocs root, and simlink dirs under htdoc path to real dir. I.e:
install dir:
/home/httpd/tiki18/

Multitiki intended installations (simlinked to the previous):

/home/httpd/htdocs/site1
/home/httpd/htdocs/site2
...

posts: 957

By the way, there are nice instructions on howto do this at AkiraMultiTiki
However, I got an error there also, after following her suggestions:

===
Fatal error: Cannot redeclare extracttoppath() in /home/httpd/tiki18/db/local.php on line 24
===

No idea what's wrong...


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