Re: Location of new (Sub-) System [message #7593 is a reply to message #7592] |
Thu, 29 April 2021 03:54 |
AJM
Messages: 2373 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
In all my installations I have the Radicore subsystem directories and all application subsystem directories under the same root folder, which may be called 'radicore' but can be anything you choose. If several domains are sharing the same code then each domain must have its DOCROOT set to the root folder mentioned above. This means that each domain will share the same files, including the config.inc file. This means that by default each domain will also share the same databases. You can alter this by setting different values in the config.inc file according to the current domain name, which is provided in $_SERVER['SERVER_NAME']. You can then use a different value for $dbprefix, such as 'htm_' and 'him_' so that the data for one domain is NOT shared with any other domain.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|