Skip to Content

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.

  1. create a new database. We have some instructions on doing this.
  2. Go to the www directory: cd /var/www
  3. Issue a Subversion checkout command for the Drupal 5 tree:
  4. Add a Virtual Host entry to your VPS's httpd.conf file, which are the settings for your web server:
    1. Edit the httpd.conf file: sudo nano /etc/httpd/conf/httpd.conf
    2. Uncomment (remove the '#' from) the line: #NameVirtualHost *:80
    3. 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>
    4. Replace all occurrences of drupal47example.com with 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 with ServerAlias. For example: ServerAlias www.drupal47example.com drupal47secondexample.com www.drupal47secondexample.com
    5. Replace all occurrences of drupal5example.com with the domain or subdomain you'll use for your Drupal 5 site.
  5. restart your web server: sudo /sbin/service httpd restart
  6. Copy the template site to your site and set permissions so that Apache can modify the files:
    1. cd /var/www/DRUPAL-5/html/sites
    2. cp -R _template <yourdomain> e.g. cp -R _template lisp.rolandtanglao.com
    3. cd <yourdomain.com> e.g. cd lisp.rolandtanglao.com
    4. 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.
  7. 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?

discursives 的头像

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

Richard Eriksson 的头像

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

discursives 的头像

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

Richard Eriksson 的头像

From this excercise I learned how important it is to be in the right directory when executing.

You can put a dot at the end of the command to check out the version of Drupal you want into the current directory.

Also, by using http://cyberduck.ch/ I can use ftp to edit the conf file with textmate.

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 sudo before the editing command (which for me is nano /etc/httpd/conf/httpd.conf because 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:

Unable to select database

We were able to connect to the MySQL database server (which means your username and password are okay) but not able to select the database.

The MySQL error was: Unknown database 'databasename'.

Currently, the database is databasename. The username is username and the database server is localhost.

* Are you sure you have the correct database name?
* Are you sure the database exists?
* Are you sure the username has permission to access the database?

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

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

Richard Eriksson 的头像

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

Roland Tanglao 的头像

no text

评论查看选项

选择您喜欢的显示评论的模式,并点击"保存设置"来激活您所做的改变。