I am using a share hosting at the moment.
I am looking for a way to set up about 3 sites together. it needs to be in a single codebase, single database..
As my understanding after the search on the site for how to set up the multisite, Should I do the following ...:
1: park the new domain name into the main domain name folder ( I have done this already)
2: create the folder for the multi- domain name like
sites/domain2.com
sites/domain3.com
sites/domain2.com/settings.php
sites/domain3.com/settings.php
3:All I need is same content , same database ,everything are the same. So, I just need to copy the $db_url to all the settings.php.NO need to edit the $db_prefix.
4: The only different will be the site name, logo, slogan etc... ( don't know how to do this yet)
My question is : Is the step 3 right ? Do I need to edit the $db_prefix or just make all the $db_url same ?
after finished the step 3. is everything done ? what else should I do ?
Thanks
Comments
Step 3
This information is stored into the database and if it should be different it should be situated at the tables (database) for each site.
Domain Access
It sounds to me like Domain Access would be a good match: http://drupal.org/project/domain
Domain Access
I think this not better way to use this powerfull module for this functionality. Easier way is create some tables which will keep this informasion.
I did this recently and it's
I did this recently and it's much simpler then even prefixing
in your settings.php file for the other sites add this line:
$conf = array(
'site_frontpage' => 'node/44',
);
if you change site_frontpage to site_name or site_slogan it should over-ride those values. This allows you to change individual settings (overriding the ones set in the database) for those sites.
Ex Uno Plures
http://elmsln.org/
http://btopro.com/
http://drupal.psu.edu/
Thanks for reply. The only
Thanks for reply.
The only question is what about the site logo, What the code should be for the site logo ?
Thanks
I also noticed its difficult
I also noticed its difficult to set up the different front page for each site, at the moment, all sites are looks the same, Can anybody tell me how to make the front page different ? Can I use different url for the front page ? Thanks
Install the devel module
Install the devel module which allows you to inspect all system variables. There you'll find
site_*variables (including frontpage, mission etc.) andtheme_settings(including logo path).-Stefan