Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
drupal_notes [2008-03-19 16:43] 81.188.78.24drupal_notes [2008-03-19 17:05] 81.188.78.24
Line 1: Line 1:
 +
  
 ==== setup on debian ==== ==== setup on debian ====
   * http://www.debian-administration.org/articles/544   * http://www.debian-administration.org/articles/544
 +
 +=== multisite setup on debian ===
 +
 +the drupal5 package installs drupal in /usr/share/drupal5, with config files in /etc/drupal/5. with a multi-site setup, this is the codebase that will be used by all of the sites. in theory it will be updated by the package-manager.
 +
 +to make a new site:
 +  * make a vhost in /etc/apache2/sites-available/new_site
 +
 +<file>
 +<VirtualHost *>
 +        ServerAdmin admin@example.com
 +        DocumentRoot /usr/share/drupal5
 +        ServerName 127.0.0.1
 +
 +        <Directory "/"> 
 +               Options FollowSymLinks
 +               AllowOverride None
 +        </Directory>
 +
 +        <Directory "/usr/share/drupal5">
 +               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>
 +</file>
 +
 +also you need to make a new site config directory in /etc/drupal/5/sites. the easiest way to do this is to copy the "default" site:
 +
 +<code>
 +cp -r /etc/drupal/5/sites/default /etc/drupal/5/sites/new-site
 +</code>
 +
 +make sure that both the dbconfig.php and settings.php files are writeable by www-user.
 +
 +<code>
 +chmod g+w /etc/drupal/5/sites/dbconfig.php /etc/drupal/5/sites/settings.php
 +</code>
 +
 +
  
 ==== themes ==== ==== themes ====
  • drupal_notes.txt
  • Last modified: 2008-03-31 17:24
  • by 81.188.78.24