Tuesday, March 8, 2011

Amazing Drupal Multisites with AUFS..






Under the SUN anything possible. Today I'm going to explore the techniques of having a drupal installation with AUFS and produceing multisites using the same codebase everafter..
This would open a new era of Consumer Websites evolution. I knew the phrases are new, but viability do last!


The benefits are manifold:

1. Seemless software updates
2. Plug-n-Play drives using iSCSI Storage
3. Leverage the power of Cloud
4. Easy Failover & maintenance
5. Cost efficient & reliable

Drupal Directory structure for having a multisites:




Now I gonna teach you how to create symlinks in your windows box. It should be in your drupal root folder where index.php resides.

use linkd windows command download & install from here










This linkd software you can simply copy from a installed machine to a new; so you wouldn't need an administrative privileges to install.

one more thing, need to tell apache of this virtual domain; means when you hit apache as http://www.mydomain.com/ where you should landup:



[VirtualHost *:80]

ServerName www.mydomain.com:80
DocumentRoot /srv/www/htdocs/mysite1
[/VirtualHost]

[VirtualHost *:443]
ServerName www.mydomain.com:443
DocumentRoot /srv/www/htdocs/mysite1
SSLEngine On
SSLCertificateFile /etc/apache2/mysite1dev.crt
SSLCertificateKeyFile /etc/apache2/mysite1dev.key
[/VirtualHost]



And that's it !