stkrzysiak
8th May 2008, 08:42
hi everyone, new to the board, some help would be greatly appreciated....
I have followed the excellent tutorial at http://howtoforge.com/multisite_drupal_installation_ubuntu almost exactly, but I am concerned it is not setup as it should be. My issue is that when I load one of my sites, it claims that the settings.php does not have the right permissions. This makes sense because it says the settings.php file in question is ./sites/default/settings.php when I expect is to be ./sites/www.example_1_or_2.com/settings.php where the tutorial says to set the a+w rights. My concern is that apache is not working with drupal correctly to direct to the site's respective directory.
Before I go any further, it is Ubuntu 8.04 server, setup as a lamp. Other than the automated lamp setup, the only difference I can find is in my site conf files, I have :
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.site1.com
ServerAlias site1.com
DocumentRoot /var/www/drupal/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/drupal/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
As opposed to what the tutorial outlines:
<VirtualHost *="">
ServerAdmin serveradmin@example.com
DocumentRoot /var/www/drupal
<Directory>
Options FollowSymLinks
AllowOverride None
</directory>
<Directory var="" www="" drupal="">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
</virtualhost>
If I use the <Directory var="" www="" drupal=""> as well as <VirtualHost *=""> I get the apache error stating that multiple directories are not supported (yet).
Is this where my problem lies?? Why is apache not directing the request to the individual site's directory where it has it's own settings.php?
Thanks in advance, and keep up the great work everyone!
I have followed the excellent tutorial at http://howtoforge.com/multisite_drupal_installation_ubuntu almost exactly, but I am concerned it is not setup as it should be. My issue is that when I load one of my sites, it claims that the settings.php does not have the right permissions. This makes sense because it says the settings.php file in question is ./sites/default/settings.php when I expect is to be ./sites/www.example_1_or_2.com/settings.php where the tutorial says to set the a+w rights. My concern is that apache is not working with drupal correctly to direct to the site's respective directory.
Before I go any further, it is Ubuntu 8.04 server, setup as a lamp. Other than the automated lamp setup, the only difference I can find is in my site conf files, I have :
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.site1.com
ServerAlias site1.com
DocumentRoot /var/www/drupal/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/drupal/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
As opposed to what the tutorial outlines:
<VirtualHost *="">
ServerAdmin serveradmin@example.com
DocumentRoot /var/www/drupal
<Directory>
Options FollowSymLinks
AllowOverride None
</directory>
<Directory var="" www="" drupal="">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
</virtualhost>
If I use the <Directory var="" www="" drupal=""> as well as <VirtualHost *=""> I get the apache error stating that multiple directories are not supported (yet).
Is this where my problem lies?? Why is apache not directing the request to the individual site's directory where it has it's own settings.php?
Thanks in advance, and keep up the great work everyone!