[en] Trac on DreamHost in 5 minutes

Installing Trac on DreamHost shared hosting is no easy task. Sure, there are some attempts to ease the pain, but they are half-done at best. So what I needed was a simple, automated, feature complete and easy to use way of installing Trac and managing my Trac projects on DreamHost.

After some search it turned out there's nothing out there that satisfies my needs. That's why I've took matters in my own hands and created the dreamy-trac open-source project.

Now, before installing we have to talk about...

Preconditions

To make all of that automatic goodness possible dreamy-trac makes some assumptions:

  1. you are doing this on a working DreamHost account (best to create a new one),
  2. you have shell access to that account,
  3. all Subversion repositories you wish to expose to Trac are owned by that account,
  4. all domains you wish to install Trac on are owned by that account,
  5. all domains you wish to install Trac on have FastCGI enabled and
  6. you understand what I've been talking about so far.

Installing Trac on DreamHost

Please note that the following instructions are for the latest stable version of dreamy-trac (0.11.1) at the moment of this writing - so YMMV.

Logon to the desired shell account and enter the following commands:

wget http://dreamy-trac.googlecode.com/files/dreamy-trac-0.11.1.tgz 
tar xzvf dreamy-trac-0.11.1.tgz
cd dreamy-trac
./configure.sh
source ~/.bash_profile
./install.sh
If Trac installed successfully you should be rewarded with the following message:
...lines omitted...
You have installed Trac. To create a new trac project run 'create_trac_project.'
Thank you for using dreamy-trac :)

Creating a new Trac project

You wouldn't believe how simple it is - just run create_trac_project, follow the instructions and the script will:

  1. create a new Trac project,
  2. setup permissions and create a superuser,
  3. setup and use Account Manager plugin
  4. setup the Subversion post-commit hook,
  5. make your Trac project web accessible via FastCGI,
  6. make your Trac project URLs pretty and
  7. make Apache serve the static files instead of Trac.

Posted under: , , , ,