CREATE DATABASE testmultisite; CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON testmultisite. TO 'user'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON testmultisite. TO 'user'@'localhost' IDENTIFIED BY 'password';
download drupal.tgz into /var/www (and extract with tar-xzvf drupal.tgz) create subdir /var/www/drupal/sites/newsite.com cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/newsite.com/settings.php chmod 666 /var/www/drupal/sites/newsite.com/settings.php chown www-data:www-data /var/www/drupal -R
sudo vi /var/www/drupal/sites/newsite.com/settings.php
// $databases = array();
$databases['default']['default'] = array( 'driver' => 'mysql', 'database' => 'databasename', 'username' => 'username', 'password' => 'password', 'host' => 'localhost', 'prefix' => 'main_', 'collation' => 'utf8_general_ci', );
http://newsite.com/install.php (at the end of the script success it will auto change permissions of settings.php to 444)
YOU MAY HAVE TO CREATE /var/www/drupal/sites/newsite.com/files (chmod 755) (That way you can upload custom logo, favicon, or of course file uploads from users for that site)
Admin -> Appearance -> Global Settings you can "modify the Path to custom icon"
NOTE: first migrate drupal6 single site database to drupal7 single site database, then convert to multisite
*These instructions do not cover complex module migrations, so after the database is updated, Custom Modules need to be added and re-configured
disable all modules except for Core required download and extract drupal.tgz into /var/www/updatedsite.com chown www-data:www-data /var/www/updatedsite.com -R
cp /var/www/oldsite.com/default/sites/settings.php /var/www/updatedsite.com/default/sites/settings.php (essentially the db user/pass) chmod 666 /var/www/updatedsite.com/sites/default/settings.php
http://site.com/update.php
chmod 444 /var/www/updatedsite.com/sites/default/settings.php
IF YOU HAVE UPGRADED FROM DRUPAL6 TO DRUPAL7 (single site database) THEN create subdir /var/www/drupal/sites/newsite.com cp /var/www/updatedsite.com/default/sites/settings.php /var/www/drupal-multisite/sites/updatedsite.com/settings.php point your web server (i.e. apache, cherokee, nginx, etc.) to the new directory /var