The ability to simply run multiple sites out of the box is one of the advantages of using Habari. To set up a Habari installation to be used for multiple sites:
1. Create a '/sites' directory under '/user'. The path ends up being '/ user/sites'. 2. Create a directory under '/sites' for the site you are creating. If you are using a subsite such as sub.example.com, your directory structure will end up looking like '/user/sites/sub.example.com'. If you are using an independent site, such as www.example.com, your directory structure will end up looking like '/user/sites/ example.com'. (If you leave off the 'www' part, both www.example.com and example.com will redirect to this site. 3. Copy the config.php file from the 'system/schema/' directory for the type of database you are using to the directory you created in step 2. 4. Fill out the config.php file as you normally would. Enter the connection string for your database. If you are using MySQL or PostGres, fill in the username and password. For all three you can enter a table prefix if you are using one. If you're not using a table prefix, make it an empty string. 5. Tell your web server that the root directory for the site is the root of the Habari installation, just as you would if you were only setting up Habari to run one site. 6. Navigate to the site and install as usual. If you wish to run additional sites, just create more directories under 'user/sites' and follow the steps above. Each is able to use their own database, or can all share one database. If you do that, make sure you use different table prefixes for each site. If you use SQLite, the database will default to being created in Habari's root directory unless you enter a full path to where you want the SQLite database created. You can also create a '/plugins' and a '/themes' directory under each site, so each is independently using their own plugins, or they can share the system plugins and any plugins you've installed in the '/user/plugins' directory. I hope this helps. Rick On Sep 11, 10:57 pm, "Dr.Hamza Mousa" <[EMAIL PROTECTED]> wrote: > Hi > > am testing Habari , however coming cross the multi-site > settinghttp://wiki.habariproject.org/en/Multisite, what exactly should i > edit in config.php file !!!!! --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/habari-users -~----------~----~----~----~------~----~------~--~---
