How to Create a Multisite Drupal Installation

How to Create a Multisite Drupal Installation
Uses for a multisite installation:
  • Hosting two separate Drupal domains, such as: domain1.com and domain2.com.
  • Hosting a Drupal sub-domain, such as: domain.com and blog.domain.com.
  1. Create a backup of your site using your Plesk Control Panel! This will allow you to easily revert should something go wrong, or you don't like the multisite setup.
  2. Connect to your site using FTP. If you are unfamiliar with using FTP, see: How to Use FTP
  3. In your FTP client, navigate to the /httpdocs/sites/ directory.
  4. In the /httpdocs/sites/ directory, create a folder that reflects the domain name of the site.
    1. Example: blog.domain.com or domain2.com
    2. IMPORTANT: Add the new site as a domain alias in your Plesk Control Panel. See: How to Create Domain Aliases in Plesk


       
  5. Navigate to the /httpdocs/sites/default/ directory.
  6. Download the default.settings.php file to your local machine and rename it to settings.php
  7. Upload settings.php to the new folder you created. Example: /httpdocs/sites/blog.domain.com/
  8. Navigate to /httpdocs/ and download the install.php file to your local machine.
  9. Navigate back to /httpdocs/sites/[SiteYouCreated] and upload the install.php file.
  10. Using your browser, browse to the new site you created and append /install.php to the end. Example: blog.domain.com/install.php
  11. This will bring you to the Drupal installation page. Proceed with the options of your choice.
  12. On the Set up database page, supply the database name, username, and password you wish to host the application on.
    • It is recommended that you use a separate MySQL database, to reduce the stress on the application's database. You may purchase a second database through your control panel by going to Account > Buy Resources > Increase Maximum number of MySQL databases by 1. > Next > Confirm the order.
    • You may also host the application in the existing Drupal database by supplying the current database credentials, and expanding Advanced Options and setting Table Prefix to something such as blog_
      • This will prefix every database table with blog_, so the two instances can function side by side. This may impact the performance of your sites, as you are running two sites off of one database.
  13. Click Save and continue, this will create a second instance of Drupal, and will bring you to the Configure Site page.
  14. Fill out the site information as you see fit, and click Save and continue when finished.
  15. You have now created another instance of Drupal on your domain, and can build your second site to suit your needs.
     

Add Feedback