Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#671 closed Task/To do item (fixed)

Create a development version of the blogs site

Reported by: Daniel Kahn Gillmor Owned by: alfredo
Priority: Urgent Component: Tech
Keywords: fidel Cc:
Sensitive: no


To further the development of, Alfredo needs to be able to modify and experiment with the code. This includes a transition to drupal 6, which could potentially be a hairy thing.

The next necessary step would be to set up a development instance of the blog site on fidel, Alfredo's development machine. Alfredo, here's the steps i would take.

You can start by unpacking a local copy of Drupal 5 on fidel.

Then check out the additional source we're using on the blogs site:

svn co svn+ssh://

Then, create a database on fidel, grant access to it for a new blogs user, and create the relevant config file.

Link the directory into fidel's web server configuration, and make a change to /etc/hosts so that you can access it locally by name (maybe blogs.fidel ?).

At this point, you should be able to point a local web browser (on fidel) toward http://blogs.fidel/, and interact with a basic installation.

The next step would be to unpack a local copy of the drupal 6 code, and point it at the same db on fidel, and perform whatever upgrade steps are necessary. Please document these as you go (providing links to any external documentation is also good) -- we want to be able to replicate the process, and this would also help other members who are considering this transition for their own sites.

I recognize that the suggestions above are somewhat telegraphic -- i'm happy to expand them in more detail if you have questions or get stuck.

Change History (9)

comment:1 Changed 11 years ago by alfredo

I think much of this has been done. There are already 5 and 6 installations on my machine and I also have a full blogs installation there. I do not have a mysql set-up, a phpmyadmin set-up (which is what I use for mysql manipulation and works very well with drupal development) and I've had a helluva time getting mysql drupal tables installed because I can't get permissions right. Drupal doesn't find the site although the directories are created.

I need for someone to do this with me before we even get to the svn stage if we're gonna use subversion approach.

comment:2 Changed 11 years ago by Jamie McClelland

For the record - the steps to create a new development environment are already documented on our wiki.

I would recommend that we start by getting the existing drupal 5 version working properly on fidel before trying to upgrade to drupal 6.

You can do that by:

  • Follow the steps to create a development project.
  • On the svn checkout step, use:
    svn co svn+ssh://
  • Copy the drupal-5 symlinks into place
    cp -P ~/projects/drupal-5-template/.htaccess ~/projects/drupal-5-template/* ~/projects/
  • Copy the sample settings.php file into place
    cp ~/projects/drupal-5-template/sites/default/settings.php ~/projects/
  • Edit the settings.php file, adding the mysql username/password, etc. that you created when setting up your drupal environment.
  • Dump the existing blogs database into your development site. I just left a dump in your ajl home directory on peltier (it's called blogs.sql). You can download it with:
    scp blogs.sql .
  • Then import it into your local database with (the username, database name, and password should be the same as what you set in the steps above).
    mysql -u blogs -p blogs < blogs.sql
  • And lastly you can synchronize the image files with:
    rsync -av ~/projects/

Whew. After these steps, you should be able to view and work on the blogs site as it stands with version 5.

I think I'll be feeling well enough to come in tomorrow. If you have any trouble with this, we can go through it together tomorrow. Or - if you get through it ok, we can work on the Drupal 6 upgrade tomorrow.

comment:3 Changed 11 years ago by alfredo

The instructions in the wiki on doing a development (which I was trying to follow) didn't work for me. I got totally confused. I don't do these things well. :(

We can wait until tomorrow. Then you can show me.

comment:4 Changed 11 years ago by Daniel Kahn Gillmor

Which step failed for you, Alfredo? Can you post a transcript of what you tried and where you got stuck? It's perfectly normal to get stuck going through things like this, which is why we want to document the process and improve our documentation so that people can re-use it.

comment:5 Changed 11 years ago by alfredo

Creation of mysql which returned a "not enough permissions for user" error and the url of the site doesn't resolve correctly. I think it will be a lot easier for me to document this stuff with someone else there during the day. Working alone on these things is very tough for me -- websites, no problem...file system stuff, freak-out.

I'll wait for Jamie and we can take it on as a project.

comment:6 Changed 11 years ago by Daniel Kahn Gillmor

Alfredo, i understand what it's like to be working on these kind of projects when you feel out of your normal comfort area -- i feel that way a lot! I just wanted to point out that you're not working alone: the 'net is a great resource where we can collaborate on things even when we're not in the same physical location.

To make working together over the 'net more effective, it would help to post transcripts of what you tried specifically, and what the responses were. For example:

[0 dkg@squeak ~]$ echo 'drop database xyz;' | mysql -u dkg blewwdef
ERROR 1044 (42000) at line 1: Access denied for user 'dkg'@'localhost' to database 'xyz'
[1 dkg@squeak ~]$ 

Makes it a lot clearer what's happening than saying "dropping the database didn't work".

And remember that we are working together on this! More communication makes the collaboration work better.

As for the hostname not resolving: can you post the output of cat /etc/hosts from fidel?

comment:7 Changed 11 years ago by alfredo

Thank you so much, Daniel. Your words mean much to me.

I *know* I'm not alone especially given your and Jamie's constant and vigilant support. I *do* so much appreciate and enjoy that, even though I might not always say it. You don't get to say what you feel sometimes on the job; you know how it is. But I know I *do* tap you more than occasionally for help and you've been really helpful a whole bunch of times. :-)

Now that Jamie's sitting four feet away from me, we will tackle this and keep you posted.


comment:8 Changed 11 years ago by Jamie McClelland

Resolution: fixed
Status: newclosed

This has been completed. One of the stickier issues was getting ssh to work properly when checking out the blogs site via svn. Adding a stanza to ~/.ssh/config helped out a lot.

comment:9 Changed 11 years ago by Daniel Kahn Gillmor

Keywords: added; removed

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.