single codebase, same database ,everything are the same,only logo and site information are different. How to setup ?

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by freelylw on April 29, 2010 at 9:31am

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

Posted by White_Owl on April 29, 2010 at 1:00pm

The only different will be the site name, logo, slogan etc... ( don't know how to do this yet)

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

Posted by regi.bradley on April 29, 2010 at 1:05pm

It sounds to me like Domain Access would be a good match: http://drupal.org/project/domain

Domain Access

Posted by White_Owl on April 29, 2010 at 1:13pm

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

Posted by btopro on April 29, 2010 at 1:11pm

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.

Thanks for reply. The only

Posted by freelylw on April 29, 2010 at 1:18pm

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

Posted by freelylw on April 30, 2010 at 3:52am

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

Posted by smk-ka on May 1, 2010 at 3:22am

Install the devel module which allows you to inspect all system variables. There you'll find site_* variables (including frontpage, mission etc.) and theme_settings (including logo path).

-Stefan

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /