On this page
Step 3: setting the subdirectories
Last updated on
30 August 2016
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
Bulk loop 2
- Copy directory /var/www/drupal7/sites/default as /var/www/drupal7/sites/example.com .
- Give read and write permissions to everybody for that directory and for /var/www/drupal7/sites/example.com/files/ .
- If the file /var/www/drupal7/sites/example.com/settings.php doesn't exist yet, copy /var/www/drupal7/sites/example.com/default.settings.php to /var/www/drupal7/sites/example.com/settings.php .
- Search the line beginning by "$databases" and modify that paragraph like this:
$databases['default']['default'] = array( 'driver' => 'mysql', 'database' => 'company_example', 'username' => 'company_example', 'password' => 'my_password', 'host' => 'localhost', 'prefix' => '', 'collation' => 'utf8_general_ci', );replacing the 1st occurrence of "company_example" by the database schema's name, "my_password" by your password, and, if you have created another database user representing Drupal in the schema, replace also "company_example" by its name. If you have installed mysqli, replace "mysql" by "mysqli".
End of bulk loop 2
Copy /var/www/drupal7/sites/example.sites.php to /var/www/drupal7/sites/sites.php .
Bulk loop 3
- At the end of /var/www/drupal7/sites/sites.php , add the following line:
$sites['example'] = 'example.com';
replacing "example" by the website short name, and "example.com" by the directory name.
End of bulk loop 3
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion