Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
public:shared:multi_site_config

Steps to Configure Multi site in an Environment

To setup a simple mulit site which shares common database and code base

  • Goto ExpertusONE/sites folder
  • Create a sub folder in the name of URL(domain) name(i.e if your URL is partner.expertusone.com, create a folder with the name partner.expertusone.com)
  • Goto ExpertusONE/sites/default folder
  • Copy settings.php and exp_sp.ini files from ExpertusONE/sites/default and paste it in the new folder (i.e partner.expertusone.com)
  • Edit both files(setting.php & exp_sp.ini) and change the URL to the new URL(i.e partner.expertusone.com)
  • Create a symlink(Linux) for files folder under new sub folder (i.e. partner.expertusone.com) and the link should point to /sites/default/files
  • If you want to keep any specific tables separately for both the sites then do the following changes
    • Edit settings.php file
    • Set the prefix for in the database
    • For example, below code will use variable table as separated

'prefix' ⇒ array(
'variable'⇒ 'prefix_',
),

  • Create a table which you specified in the prefix above (i.e. prefix_variable) and copy the content from the source table (i.e. variable)
  • Add the new URL entries in /etc/hosts and httpd-vhosts.conf files.
  • Restart apache and memcache

Constraints

  • The above steps are only for the simple multisite setup.
  • If the multisite should have different code base then the code should be copied in to the new folder which is created under the sites folder
  • Similarly for the database, all the non shared tables should be created with prefix.
public/shared/multi_site_config.txt · Last modified: 2022/06/14 10:16 (external edit)