User login

Setting up a new Drupal site or upgrading from command line

Drupal untar tar.gz using ssh:

cd /var/www/

wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-5.1.tar.gz

(Drupal version is just a for-instance.)

tar -xzvf drupal-5.1.tar.gz

cp -r drupal-5.1/* drupaldev/

cd drupaldev/sites/

The following applies if you have a subversion repository set up in which you keep your sites projects.

(A lot of redundancy in the paths here but quit yer whining.)

svn checkout http://www.example.org/svn/drupal/dev/example.org /var/www/drupaldev/sites/example.org

You may find it useful to create a symbolic link to aim, for the moment, the default at your working directory:

ln -s example.org/ default

Move to this directory and be root if necessary:

/etc/init.d# ./apache2 restart

And get a 500 internal server error! Yay!

According to the error log (

</code>)...

<blockquote>[Tue Apr 10 22:01:32 2007] [alert] [client 209.6.110.123] /var/www/drupaldev/.htaccess: Option Indexes not allowed here

server:/var/log/apache2# vi error.log

Drupal untar tar.gz using ssh:

cd /var/www/

wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-5.1.tar.gz

(Drupal version is just a for-instance.)

tar -xzvf drupal-5.1.tar.gz

cp -r drupal-5.1/* drupaldev/

cd drupaldev/sites/

The following applies if you have a subversion repository set up in which you keep your sites projects.

(A lot of redundancy in the paths here but quit yer whining.)

svn checkout http://www.example.org/svn/drupal/dev/example.org /var/www/drupaldev/sites/example.org

You may find it useful to create a symbolic link to aim, for the moment, the default at your working directory:

ln -s example.org/ default

Move to this directory and be root if necessary:

/etc/init.d# ./apache2 restart

And get a 500 internal server error! Yay!

According to the error log (

</code>)...

<blockquote>[Tue Apr 10 22:01:32 2007] [alert] [client 209.6.110.123] /var/www/drupaldev/.htaccess: Option Indexes not allowed here

server:/var/log/apache2# vi error.log

Comments

Some background

Stefan's setup:

after modifying the proposed repository structure I checked in example.org.

I have created a dev and a live directory in the repository. When creating a new client site I propose creating a respective directory (e.g. example.org) in dev and live. Live is our tag directory and dev our development directory. The content of a live subdir (e.g. live/example.org/1.0/ will be exported to /var/www/drupal/sites/www.example.org and the content of dev will be exported to /var/www/drupal/sites/test.example.org. I have installed postfix and some security enhancements (logcheck and tiger). To prevent falling victim to a brute force ssh attack we have to disable password based authentication.

We modified this to have separate exports of our test and live sites to drupallive and drupaltest so that drupal and its modules can also be tested (and what I set up above, drupaldev, as a development working copy).

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.