Multisite installation steps Drupal
- Create a database for your template site.
- Copy the drupal files to your chosen location.
- Install drupal according to the main instructions.
- Export the tables and data of your new installation.
- Open up the exported sql file and make sure there isn’t a create database operation.
This is how you will set up each additional site.
- In the database create a new db for your new site. Keep in mind the user that can access that db.
- Import your template sql file you exported earlier.
- In the sites folder copy the default folder and paste it in the same folder renaming it to yoursite.com So if your site is happycow.com you would name the folder happycow.com
- In that folder open up settings.php and fill in the database access information. For example if my username was admin, my password was monkey, and my db was happycow I would put: mysql://admin:monkey@localhost/happycow This is assuming that the database is on the same server as the drupal installation.
- Go to your new website, in this case happycow.com, and login using the same admin username and password you made in the template site.
- Go to Administer->Site configuration->File System and change the File System Path to a location that is specific for that website.
February 21, 2008 at 3:49 pm
For step 6, what is the standard location for the File System Path? would it be: sites/happycow.com/files ?
that would be nice… but would that create longer web addresses than necessary? for example: http://happycow.com/sites/happycow.com/files/filename
can i put the File System Path as sites/happycow.com/files and get a web address like this: http://happycows.com/files/filename ?
if so, how? if not, can you recommend this to drupal developers? thanks!
February 21, 2008 at 5:07 pm
Hmmm…This post was supposed to be posted yet. Darn performancing. I haven’t worked out all the details and they changed the location of the files since I wrote it. I put the files For your needs I would put it inside the root folder for drupal. so public_html/drupal_installation/files It will work fine. So they would still be long, but I would have. public_html/drupal_installation/files/happycow/ This would keep each sites files separate from each other. When I finally get to finishing this I will post the updates. Hopefully this works for you.
February 21, 2008 at 5:12 pm
Wow was I speaking english on that last comment? Ok The post was NOT supposed to be psted yet. I haven’t worked out all the details and they have changed the location of the default files folder since I wrote this. I would put the files, for your needs, inside the root folder for drupal. So “public_html/drupal_installation/files” will work fine and you will get what you want. But be forwarned that if you don’t want users of one site to be able to get to the folders of users of another site then I would add another folder like public_html/drupal_installation/files/hc/ This would keep each sites files separate so you don’t see the others files.
April 14, 2008 at 12:06 am
Can u send me the code for install a new template/site in drupal, in where i can change the design of that site as my requirment..
Regds….
Vik
April 14, 2008 at 9:03 am
Not sure what you mean. It seems the default installation would do that.