xoops forums

jype

Just popping in
Posted on: 2010/6/21 8:31
jype
jype (Show more)
Just popping in
Posts: 5
Since: 2010/6/13
#1

2 xoops portal 1 database?

Hi all!

I have a question:

Do you think I can have 2 differents domain name and xoops (same version 2.4 but different modules, and english/french, ...) with only one database and user can login on the 2 differents domain with the same user and password!?

I hope someone try before and can give more info!
thank you.

webmystar

Friend of XOOPS
Posted on: 2010/6/21 10:00
webmystar
webmystar (Show more)
Friend of XOOPS
Posts: 415
Since: 2008/6/23
#2

Re: 2 xoops portal 1 database?

Look it here: (multisite)
https://xoops.org/modules/newbb/viewto ... id=325587#forumpost325587

anderssk

Quite a regular
Posted on: 2010/6/21 13:55
anderssk
anderssk (Show more)
Quite a regular
Posts: 335
Since: 2006/3/21
#3

Re: 2 xoops portal 1 database?

You can also redirect one of the domains to the other.
Then use the permissions/usergroups for showing blocks (module access) and xlanguage for the language.

Alternatively redirect one domain to a subdomain on the other domain, but then the users have to use two logons ore You can create a Cron-job to copy useres from one MySQL DB to the other..

Multisite have many core hacks, so you can end up with version 2.4.4 and no oppertunity for upgrade to newer versions of XOOPS.

linux-ws

Just popping in
Posted on: 2010/7/20 21:05
linux-ws
linux-ws (Show more)
Just popping in
Posts: 39
Since: 2010/7/20
#4

Re: 2 xoops portal 1 database?

Reply to: jype

If you are trying to use 2 XOOPS installations on your websites, here are few ideas:

1. You can use sub-domains to point to different XOOPS installations on your website. Example: xoops1.domain.com, xoops2.domain.com; or test-xoops.domain.com; and domain.com (as the main site that uses the xoops php script).

2. For the database problem: 1. You can either use 2 different MySQL databases for the XOOPS installations, or you can; 2. Use the same MySQL database name, but create 2 different MySQL users, and then add those users with full MySQL permissions to your main MySQL database.

Keep in mind, you can use as many users with 1 MySQL database, you just have to add those users to your MySQL database, and give those users permission to access the databases.

Note: I would recommend that you use separate passwords for each MySQL user / database - for extra security.

Thank you very much.