Hey all
So i was reading install docs which talk about multi site install.
So i have 2 sites i want to run drupal on
www.site1.com and www.site2.com
Both will have their own directories under /var/www
/var/www/site1.com/htdocs
/var/www/site2.com/htdocs

Do i just install drupal two times into those directories or can multi-site install help me somehow? It's not quite clear from the avaliable documentation.

thanks all

Comments

jpsalter’s picture

With the way you have it set up - you should install drupal in each directory.

If you want to run both sites off of one drupal install - then you'll need to point site1.com and site2.com to the same directory. Then, you would make two directories in the /sites directory. One directory would be named site1.com and the other site2.com Each directory would contain a copy of settings.php and each of these would specify the configuration of each site.

www.site1.com -> /htdocs
www.site2.com -> /htdocs
(both point to the same directory)

then:
/htdocs/sites/site1.com/settings.php
/htdocs/sites/site2.com/settings.php
(the info in each settings.php file will be specific for the name of its parent directory)

I've run up to three distinct sites off of one codebase and a single MySQL database (you need to prefix the tables for each site). I'm sure you can do more, but I have not had the need.

Cheers,