Posted by jacobson on March 22, 2010 at 4:10am
I've got a combination of feedback and questions regarding Aegir.
- I've successfully installed Aegir in '/var/aegir'.
- I have subdirectories 'backups', 'config', 'drush', 'hostmaster-0.4-alpha6', and 'platforms' in '/var/aegir'.
- I have been hosting a number of different Drupal and Open Atrium sites on the same server at '/var/www/html'.
- I followed these instructions under Option B to import my existing sites into Aegir. (Again, all of this is on the same server.)
All seemed to go well. The Aegir instructions cited above tell me to visit my site, but my sites are in /var/www/html, at least that's what my Apache config says. So, I wouldn't expect the installation of Aegir to have changed anything. Then, it occurred to me that what Aegir does is move site hosting from '/var/www/html' (the default for Ubuntu) to '/var/aegir/platforms'.
My questions are:
- Is my conclusion correct that Aegir expects to serve sites from /var/aegir/platforms? (If so, I suggest that the Aegir documentation make quite clear that Aegir sites are not served from the server's default location.)
- Do I assume correctly that I must modify my existing Apache config to point to /var/aegir/platforms?
- Is there a reason why I wouldn't just have Aegir manage the sites at /var/www/html?
a. I assume I'd need to do a chown on the Drupal directories there to make 'aegir' the owner while keeping 'www-data' as the group, correct?
b. Are there any other "changes" I need to make to the Aegir installation?
Thanks.
Comments
The way Aegir works, each
The way Aegir works, each Drupal site is hosted at a new, different hostname. Aegir doesn't currently, out of the box, support path based Drupal sites. I assume, based on how you describe your current setup that you have one hostname/virtualhost configured in Apache and that is pointing to /var/www/html, where you have multiple Drupal folders. Perhaps /var/www/html/atrium, /var/www/html/drupal or maybe you've used names that are more appropriate for the URL such as /var/www/html/groups. If I'm incorrect about any of the above, ignore the rest...
When a new platform is added to Aegir, you can have a multitude of sites that live under that platform, they will all use the same Drupal code base in that platform folder.
When a new site is added to Aegir, under an established platform, a couple of things happen. A folder is created under /var/aegir/platforms/drupal/sites/ that matches the hostname you've given your new site. An apache configuration file is generated that contains a Virtualhost section and is placed in /var/aegir/config/vhost.d/. A bunch of other stuff happens too, but these are the important parts to understand how Apache and Aegir interact.
In order to get Aegir to take over for the sites you've migrated into it you need to ensure you've included the Aegir apache configuration file from your Apache configuration. Setup your DNS for each hostname/site you've moved to Aegir. And remove/disable the old Apache configuration referencing your sites in /var/www/html or just remove the folders in /var/www/html.
Hope this helps, sorry if I was long winded.
-Tim