Loading...
 
Architecture / Installation

Architecture / Installation


How to W2K InstallVirtualHosting? - Unable to Load Database Driver

posts: 6

I have sucessfully installed TikiWiki 1.8 and it works a dream biggrin.

Now I would like to get several sites running on the same server configured with W2K server SP4 / IIS 5 / PHP 434 / MySQL 416. I have configured IIS so that several sites can be access and have checked they work with static html pages.

I checked the InstallVirtualHosting documentation for Linux and read the tiki-db.php instructions. All the PHP code is in c:\php and the Tiki in c:\tiki directories, and extra directories for "sal" etc were created in backups\sal, templates-c\sal and modules\sal etc.

I tried to make a db\local.php file with the settings below but being a newbie to php I am not sure if the changes I have made are correct. When opening the tiki-install.php page I get an error message "unable to load database driver". Someone can probably spot my obvious mistake(s).

Has anyone been able to get multiple TikiWikis on the same windows server working ? Or is there any more documentation for setting the local.php in windows ?

Many thanks
Railton....



db\local.php for 1.8


< ? php

$host_tiki = 'localhost';
$user_tiki = '';
$pass_tiki = '';

$host_map = array(
'sal.co.uk' = array(
'dbs_tiki' => 'SAL',
'tikidomain' => 'sal',
),

'zns.co.uk' = array(
'dbs_tiki' => 'ZNS',
'tikidomain' => 'zns',
),
);

if $HTTP_HOST" class="wiki wikinew text-danger tips isset">$host_map$HTTP_HOST {
extract($host_map$HTTP_HOST);
}

? >

posts: 2881 United Kingdom

Hi,

There was a page about IIS installations some tweaks that were needed to the code because IIS doesnt have some variables.

:/
Damian


posts: 6

Damian

Thanks for the swift reply. I have found a bit more info and very nearly got the multi site working.

After trawling around for some more stuff I discovered another useful document called RecipeMultiTiki and that near the end of the document gives an example of how to setup the db\local.php file.

I have now re-installed - and connected to two different domains as two different Tiki's.

However there is one remaining problem for me to research which is both tikis/domains now complain at the top of each web page :

"session_start(): Cannot send session cookie - header already sent (output started at c:\tiki\db\local.php:24) in c:\tiki\tiki-setup_base.php on line 46"

and

"session_start(): Cannot send session cache limiter - header already sent (output started at c:\tiki\db\local.php:24) in c:\tiki\tiki-setup_base.php on line 46"

db\local.php:24 - is the EOF mark

tiki-setup_base.php:46 - is

if (ini_get('session.save_handler') == 'files') {
....
So I am off on another trail. Wish me luck !
(Unless someone can make another suggestion)

At the end of this exercise I will post some documentation on how to do this for those who follow !

Railton....


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