wiki:faq/drupal/add-site

Version 5 (modified by Jamie McClelland, 16 years ago) ( diff )

--

How do I add a new Drupal site to my existing drupal installation?

  • Create a subdomain in the Members Control Panel in the DNS service. For "type" select "a." Enter a domain name (like new.yourdomain.org) and for the IP address, use the same IP address as your other DNS records.
  • Edit your web configuration in the Members Control Panel. Add your new domain to the ServerAlias line. For example, if your existing site was mysite.org, and your new site was dev.mysite.org, you would change your ServerAlias line to read:
ServerAlias www.mysite.org dev.mysite.org
  • ssh or sftp to your site. In your /home/members/YOURMEMBERNAME/sites/YOURDOMAINNAME/web/sites directory, create a new directory with the same name as your subdomain.
  • Copy the default settings.php file from the core installation. You can do that by first changing into the directory you created in the step above. Then execute:
cp /usr/local/share/drupal-5/sites/default/settings.php .
chmod 600 settings.php
  • Now, go the your new web site (point your web browser to the new domain you created). You should be prompted with an installation screen asking you for your settings.
  • IMPORTANT: when you are asked for your database connectivity information, you can get that information from your existing settings.php file (see accessing your drupal database for directions on how to get your username and password).
  • EVEN MORE IMPORTANT: When entering your database information, click the "Advanced Link" and enter a table prefix. This trick allows you to store tables for two or more drupal installations in the same database.
Note: See TracWiki for help on using the wiki.