[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-users] Re: isolate groups on one phpgw installation
From: |
Bob Crandell |
Subject: |
Re: [Phpgroupware-users] Re: isolate groups on one phpgw installation |
Date: |
Sat, 29 Jun 2002 02:25:49 +0000 |
When I tested this, I created another database in the same manner as the first
one
but with a different name. You will need a separate database for each domain.
Create one of these sections for each domain in header.inc.php.
$GLOBALS['phpgw_domain']['test'] = array (
'db_host' => 'localhost',
'db_name' => 'test',
'db_user' => 'phpgroupware',
'db_pass' => 'password',
'db_type' => 'mysql',
'config_passwd' => 'password'
);
$GLOBALS['phpgw_domain']['test2'] = array (
'db_host' => 'localhost',
'db_name' => 'test2',
'db_user' => 'phpgroupware',
'db_pass' => 'password',
'db_type' => 'mysql',
'config_passwd' => 'password'
);
No changes are necessary for Apache.
In Header Admin Login, enter the new domain database name.
DB Name
____________ Name of Database
When you log into /phpgroupware/setup/index.php you enter the domain name and
password to create and configure each one.
I hope this helps.
What would be nice is if someone could write a nice frontend then it would be
handy
enough for ISPs with a couple hundred (thousand?) domains.
address@hidden wrote*:
>
>I wanted to report about my further experience with setting up
>multiple domains in case others have similar problems.
>
>First I wanted to suggest that the relation between phpgroupware
>domains and URLS be explicited somewhere. I think the fact that
>phpgroupware suggests a domain dropdown box, seems to imply that it is
>possible to have two domains with the same URL. My experience shows
>that this is not the case.
>
>After I had set up two Aliases for apache pointing to the same
>phpgroupware installation http://myhost/domain1 et
>http://myhost/domain2, created the database for domain2, edited
>header.inc.php, I could not get domain2 installed. the setup page
>did not seem to recognise the settings for the domain, sometimes it
>said that the applications were installed even if the database was
>still empty, and as I said in the last post when reinstalling
>applications it emptied the database of the first domain.
>
>Finally I decided to install the second domain on an independent
>installation of phpgroupware. Strangely I still had the same problems,
>the installation of domain2 altered the database of domain1. I had the
>doubt that the problem could be caused by the fact that domain1 and
>domain2 had the same database user "phpgroupware" who had privileges
>on both databases. It was when I created two independent database
>users that I succeeded installing domain2.
>
>Then I tried to delete the directories of installation of domain2, and
>enable it as a virtual domain in the first installation. this seems to
>work now. the only problem I have, is that when cookies are enabled, I
>cannot login to the second domain with Mozilla, without cookies it
>works.
>
>Michael
>
>
>_______________________________________________
>Phpgroupware-users mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>
--
Bob Crandell
Assured Computing
When you need to be sure.
Cell 541-914-3985
FAX 240-371-7237
address@hidden
www.assuredcomp.com
Eugene, Or. 97402