[Systems] El sábado tenemos web

Bernie Innocenti bernie at codewiz.org
Sun Oct 30 21:18:32 EDT 2011


On Sun, 2011-10-30 at 11:17 -0500, Sebastian Silva wrote:
> Bernie - could we have a dev- environment for this drupal site?
> As in sugarcamp-dev.somosazucar.org so that we can work the last
> details there before going into "production"? I guess we'll need a
> MySQL database for each instance too.

Sure. Here's how I did it:

1. Add a group "azucar" and make www-sata, you and me members

2. Create a directory to host drupal and make it writable by us

   mkdir /srv/www-somosazucar
   cd /srv/www-somosazucar
   chgrp -R azucar .
   chmod -R g+s .

3. Get latest stable Drupal from git
   (see http://drupal.org/node/3060/git-instructions/7.x)

   git clone --branch 7.x http://git.drupal.org/project/drupal.git sugarcamp
   cd sugarcamp

4. Initial drupal setup
   (see http://drupal.org/documentation/install/developers)

   cp sites/default/default.settings.php sites/default/settings.php

5. Grant access to database

   mysql -u root -p
   mysql> create database azucar_drupal;
   mysql> grant all privileges on azucar_drupal.* to azucar_drupal at localhost identified by '<random password>';

6. Create an Apache virtual host with DocumentRoot pointing at /srv/www-somosazucar

   vim /etc/apache2/sites-available/sugarcamp-devel.somosazucar.org
   a2ensite sugarcamp-devel.somosazucar.org
   service apache2 reload

7. go to http://sugarcamp-devel.somosazucar.org and complete the
   installation with the wizard

8. create an admin user "icarito" (I'll send you the password privately)

Now it's your turn: first of all, create a documentation page at
http://wiki.sugarlabs.org/go/Service/sugarcamp.somosazucar.org . There's
a service template under Service/zzz_template, or check the others for
inspiration. Copy-pasting the above notes into an "Installation"
paragraph would be a useful start. You can also document things in
Spanish if it's clearer for the people who will need to work on it.

Enjoy your new drupal site!

-- 
 _ // Bernie Innocenti
 \X/  http://codewiz.org



More information about the Systems mailing list