Advertisement:

Author Topic: OSCLASS Multisite Set Up  (Read 385 times)

360webfirm

  • Newbie
  • *
  • Posts: 6
OSCLASS Multisite Set Up
« on: September 25, 2018, 06:40:09 pm »
Hello All,

I have been looking around here and on the internet to try and understand how to set up a multisite environment.

Can someone please take a few minutes out of their busy day and just explain to me how I can do this?  I am very new to Osclass and I would like to set up a sub domain scenario to create sites for each province in Canada for services. I am using the OsclassWizards 2.0.4 theme.

Any help would be very appreciated.

Thanks so much!

Aficionado

  • Guest
Re: OSCLASS Multisite Set Up
« Reply #1 on: September 25, 2018, 10:38:34 pm »
There are several topics here about it, pls search.

There are two ways to do it, one REAL subsdomain with different Osclass/DB for each, and using Osclass pseudo-subdomains using wildcard DNS and ONE Osclass and ONE DB.

Again, search there is plently of info here.

And here:

https://dev.osclass.org/2013/07/19/use-categories-countries-regions-or-cities-as-subdomains/


360webfirm

  • Newbie
  • *
  • Posts: 6
Re: OSCLASS Multisite Set Up
« Reply #2 on: September 27, 2018, 11:16:59 pm »
I get that, I have read that and I followed all steps. Here is what I did.

Hello All,

I have done all the steps in setting up a sub domain scenario where people can go to different regions. The issue is that when they go to sub.mydomain.com, all new listings also get posted to mydomain.com and vise versa.

Is it not possible to set up sub domains where people post in one sub domain and not get that post added to another sub domain?

I have been on this for days and I have exhausted all google serahces and forum post's. If anyone can help me with this, I would really appreciate this.

What I have done is the following:

1. Created a wildcard sub domain using *. This created a A record that points to my server IP.
2. Modified config.pho file. It now looks like:

<?php

/**
 * The base MySQL settings of Osclass
 */
define('MULTISITE', 0);

/** MySQL database name for Osclass */
define('DB_NAME', 'xxxxxx');

/** MySQL database username */
define('DB_USER', 'xxxxxx');

/** MySQL database password */
define('DB_PASSWORD', 'xxxxxxx');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Table prefix */
define('DB_TABLE_PREFIX', 'oc_');

define('REL_WEB_URL', '/');

define('WEB_PATH', 'https://'.$_SERVER['HTTP_HOST'].'/');

?>


3. Changed the permalinks to not friendly. Unchecked them.
4. In advanced, I added sub domain type region, then I added my main domain like so https://mydomain.com.

When I go to sub.mydomain.com, I can see page, login to that sub domain control panel, but the database is using the same settings and data for all sites.

What am I doing wrong or what am I missing?

Please help.

Steve

Aficionado

  • Guest
Re: OSCLASS Multisite Set Up
« Reply #3 on: September 28, 2018, 12:37:56 am »
I will reply more later (i'm busy now) but you need to add to config the following:

Quote
define('COOKIE_DOMAIN', '.yourdomain.tld');

You missed it.
« Last Edit: September 28, 2018, 12:39:29 am by Aficionado »