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:
- 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
ServerAlias 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 withServerAlias. For 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 restart - Copy the template site to your site and set permissions so that Apache can modify the files:
- cd /var/www/DRUPAL-5/html/sites
- cp -R _template <yourdomain> e.g. cp -R _template lisp.rolandtanglao.com
- cd <yourdomain.com> e.g. cd lisp.rolandtanglao.com
- chown apache settings.php ; chown -R apache files
- if you see errors when running the above command, re-edit your httpd.conf file and remove the lines you added above, then restart the web server again.
- 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.
评论
updating to new tag?
It's probably really easy, right? But how do you pull down the new tag?
I guess I'll need the specifics for /var/www/MyInstall/etc/etc
Thanks!
http://peerproducers.com - Peer Production Praxis
We have instructions for
We have instructions for maintaining Drupal 5 tagged releases using Subversion. The current tag is 2007-04-03.
Need 4.7 for Migration and Upgrade Path
Hello,
I am looking at these instructions in order to add an additional instance to my VPS. I need 4.7 -
DRUPAL-4-7/tags/2007-01-29S
https://svn.bryght.com/dev/browser/bryghtbase/DRUPAL-4-7/tags/2007-01-29...
That makes the ssh command:
svn co https://svn.bryght.com/dev/svn/bryghtbase/DRUPAL-4-7/tags/2007-01-29S DRUPAL-4-7
From this excercise I learned how important it is to be in the right directory when executing.
Also, by using http://cyberduck.ch/ I can use ftp to edit the conf file with textmate.
http://peerproducers.com - Peer Production Praxis
dot
You can put a dot at the end of the command to check out the version of Drupal you want into the current directory.
Yup, that's pretty handy, though I believe that would require setting the ownership of the httpd.conf file to the 'admin' user. I usually edit the file at the command line, and as the super user by typing
sudobefore the editing command (which for me isnano /etc/httpd/conf/httpd.confbecause yes, I use nano).Unable to select database
I tried this procedure both with the initial release and the recent 2007-01-24 release, and neither worked for me. Instead of reaching the drupal install script I get a basic Drupal error message:
Any suggestions on this?
I've also sent 2 emails to support@bryght.com this month, both of which have gone unanswered. Are you guys having email trouble again?
databasename
Looks like you're not replacing "databasename" with the database you created. We have instructions on creating a database. Use the values you use to create the database when running through the install script.
Boris will send you an email separately about the SSL queries you had.
databasename where?
I figured out what the problem is.
The install script isn't located at http://drupal5example.com/, it's at http://drupal5example.com/install.php.
You are right Carl, I updated the document to show install.php
no text