Note: to create a new Drupal site using these directions, you will need to have root access to your server and already have a valid domain name to use.
- Set up the virtual host name routing
- Log in
- sudo nano /export1-local/project/apache/conf/ascc.conf
- Page down to the section containing the Virtual hosts. <VirtualHost *:80>
- Add new virtual host name under the correct document root (where ever your Drupal multisite installation is) as a ServerAlias
- Save and Exit
- sudo /sbin/service httpd restart
- Create a database
- Create a site folder
- Create a new folder in the Drupal sites/ directory. The folder must match the virtual host name from earlier. Note: if you are working in a domain other than the one the site will eventually have (e.g. a development site), it's important that the domains have the same root. For example, if the production site will be computing.artsci.wustl.edu, make the test domain test.computing.artsci.wustl.edu and name the site folder computing.artsci.wustl.edu so that the file paths will not break. Drupal will still recognize it for routing purposes.
- Copy the default.settings.php file from the sites/default folder into the new site directory and rename it settings.php
- Create a 'files' directory within the new site directory (to be deleted later)
- Create a files directory for this site at /files/<yournamehere>
- Initially, all files should be readable and writable by the account owner and the Apache web user. The best trick is to create a user group that contains your account owner and the Apache web user. That way, when you are done, nothing will need to be writable by 'other'. (Dangerous)
- Note: would recommend changing the file settings to point to /files/<yournamehere> instead of the default location in the sites directory and then deleting the files folder you created earlier.
- Initial Installation
- Browse to the new site URL (what ever the virtual host name was)
- Choose the language you would like to install in
- Enter the database name, username, and password from the database you just created
- Enter the Site Name and email address
- Create the first user account. This will be the superuser, so for simplicity you might want to make it the same as the other sites within the multisite installation
- If you are on a private intranet site, you will probably want to uncheck 'check for updates'
- Click 'Save and continue'
- Change file permissions - The entire new site folder should be readable by the account owner and the Apache web user and writable by the account owner. The files folder alone will need to be writable by the Apache web user. 'Other' should not have read access to anything except the files folder.