Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASK] 1 osclass install for 2 websites #1172

Closed
robbycandra opened this issue Nov 17, 2013 · 5 comments
Closed

[ASK] 1 osclass install for 2 websites #1172

robbycandra opened this issue Nov 17, 2013 · 5 comments
Labels

Comments

@robbycandra
Copy link
Contributor

I want to ask this at forums, but I think I better ask here.

If I want to make another sites, what should I do to make 1 install for to websites?

Regards

@conejoninja
Copy link
Member

Hi, @juanramon knows about this way more than me, but take a look at this #599 (last message)

A new table has to be created in a database, also, each site has to have a different database.
All the installations have to have the same table prefix (by default "oc_").
config.php has to point to the database that have the new table tbl_sites (oc_tbl_sites)

@dev-101
Copy link
Contributor

dev-101 commented Nov 18, 2013

Sorry to interfere, what are the advantages of MULTISITE? Would this practice allow that we have multiple installations on different domains, but share the same user database?

What I would like is to have several different installations and share the users between, so if one registeres on single, it would be registered on otheres sites also. Otherwise, sites would use different themes and plugins. Is this supported by Osclass, or I have to use some database synchronisation of the user tables?

@conejoninja
Copy link
Member

Hi dev101, users are not shared. Each domain will have its own data and configuration. For the advantages, it allows you to update thousands of websites very easily, (only once).

@dev-101
Copy link
Contributor

dev-101 commented Nov 18, 2013

Thank you Daniel for explaning this.

@DoktorRPI
Copy link

i did it this how it is explained, here in the forum but it´s not working.

db1 & db2 has the same prefix oc3_

domain1.com with db1 oc3_tbl_site with filled Information about the db2 & site2 information from db2
domain2.com with db2 oc3_tbl_site with filled Information about the db1 & site1 information from db1

CREATE TABLE oc3_tbl_sites (
s_site varchar(255) NOT domain1.com ,
s_db_name varchar(255) default dbname,
s_db_host varchar(255) default 001.mysql.com,
s_db_user varchar(255) default dbuser,
s_db_password varchar(255) default pwpwpw,
PRIMARY KEY (s_site)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

in the config.php i turned the MULTISITE ID to 1 but the sites are showing Osclass database server is not available

need i change some think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants