Running Multiple Installs of Drupal on Your VPS at Once
These instructions will get you started running Drupal 5 on your virtual private server for new Drupal sites. This does NOT document how to upgrade Drupal 4.7 sites to Drupal 5 Bryght Basic.
These instructions assume knowledge of the command line, which you can access via SSH.
- create a new database. We have some instructions on doing this.
- Go to the www directory:
cd /var/www - Issue a Subversion checkout command for the Drupal 5 tree:
sudo svn co https://svn.bryght.com/dev/svn/bryghtbase/DRUPAL-5/tags/YYYY-MM-DD DRUPAL-5 - Replace YYYY-MM-DD with the tag you want to install. We will post on the front page of support.bryght.com when a new tag becomes available, and we recommend using the tag that has the latest date. You can also view the repository's tags at the following URL in your browser: https://svn.bryght.com/dev/browser/bryghtbase/DRUPAL-5/tags
- Add a Virtual Host entry to your VPS's httpd.conf file, which are the settings for your web server. To do that, edit the httpd.conf file:
sudo nano /etc/httpd/conf/httpd.conf - Uncomment (remove the '#' from) the line:
#NameVirtualHost *:80 - Add the following snippets (at the bottom of the file.
<VirtualHost *:80>
ServerName drupal47example.com
ServerAlias www.drupal47example.com
DocumentRoot "/var/www/html"
#this is required for your existing Drupal 4.7
</VirtualHost>
<VirtualHost *:80>
ServerName drupal5example.com
ServerNamerAlias www.drupal5example.com
DocumentRoot "/var/www/DRUPAL-5/html"
</VirtualHost> - Replace all occurrences of
drupal47example.comwith the domain of the existing Drupal 4.7 site you may have. If you have multiple domains running on Drupal 4.7, you will need to add the domains (and the domains with 'www') to the line that starts withServerAliasFor example:ServerAlias www.drupal47example.com drupal47secondexample.com www.drupal47secondexample.com - Replace all occurrences of
drupal5example.comwith the domain or subdomain you'll use for your Drupal 5 site. - restart your web server:
sudo /sbin/service httpd restartIf you see errors when running the above command, re-edit your httpd.conf file and remove the lines you added in step #7 above, then restart the web server again. - Copy the template site to your site and set permissions so that Apache can modify the files:
cd /var/www/DRUPAL-5/html/sitescp -R _template <yourdomain>cd <yourdomain.com>-
chown apache settings.php ; chown -R apache files
- Visit http://drupal5example.com/install.php in your browser and go through the install process. Pick the "Basic" profile to get Bryght Basic. You will need to type in the information for the database you created in Step #1 as well.