User login

Setting up the Agaric way (svn working copy checkouts) on a new server

So, you're the latest Agaric intern (or a founder who's forgotten everything) and you need to put a client on a new server, and you want to continue using the Agaric repository system.

You've found the right page.

Resolution

If you have to begin at the beginning (but not all the way at the beginning) include this first command, throwing in sudos as required throughout:

apt-get install subversion

cd /var/www/
svn co https://agaricserverexample.com/srv/svn/agaric/drupal-core/drupal-5.2/ namedirectorytoputin

Now you want to tell Apache to look there:

cd /etc/apache2/sites-available/
vi default

Add namedirectorytoputin/ to the end of the two directives ending in /var/www/

Unless you don't expect this to really be your default, in which case by all means vi up a new filename, and create your sites enabled setting.

If you create a new file "yourfilename" in sites-enabled, also run

a2ensite yourfilename</a> to enable it (puts a symlink in /etc/apache2/sites-enabled/).

To make your changes take effect:
<code>
apache2ctl restart

OK, that's Drupal core. You still need to get the Agaric select mix of contributed modules, and your project's site!

(In Agaric's case this time, namedirectorytoputin was wsf2008 and we'll use that in these examples.)

cd /var/www/wsf2008/modules/
mkdir contributed
svn co https://66.135.37.243/srv/svn/agaric/drupal-contrib/5/modules .

cd /var/www/wsf2008/sites/

svn co https://66.135.37.243/srv/svn/agaric/agaric-sites/5/wsf/trunk/wsf2008.net wsf2008.net
rm -rf default/
ln -s wsf2008.net/ default

Don't forget to copy that database. (See backing up and restoring databi, ssh copy (better known as scp), setting up ssh keys for transfer between servers, and creating ssh keys as necessary.)

OK, that was a little messy because in Drupal 5, the default and settings.php is part of the Drupal code. I think in Drupal 6 it is created as needed. In this case we wanted our site to truly be the default, but not have any risk of overwriting it by svn updating drupal core. That would be bad.

(Note that Agaric doesn't pretend to understand why the checkouts we've checked out into the larger drupal core checkout don't get overridden. We're just happy that they don't. (Note further that the deleted default directory didn't get restored either. But we're paranoid. (In fact, more paranoid than ever. What if we do change any little thing in Drupal core, would everything get overwritten on the next svn update? (And finally, note that nested parenthesis in text is kind of fun.))))

Oh yeah, the how-to ended two paragraphs ago. You can get your time back by going and hugging someone you love.

Searched words: 
svn checkout Agaric method of site repository structure nested sites and modules folders

Comments

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.