Install Trac on Dreamhost

I’ve just installed Trac on a sub-domain on Dreamhost. The best information I could find on this is at natmaster.com but the information does have one issue.

The instructions cause the required Python libraries to be installed in two places – some go into lib/python and others into lib/python2.3/site-packages. To make the installation work for me, I needed to add both locations to the PYTHONPATH environment variable in all the locations that define it.

PYTHONPATH=/home/{user}/packages/lib/python2.3/site-packages

becomes

PYTHONPATH=/home/{user}/packages/lib/python2.3/site-packages:/home/{user}/packages/lib/python

It took me an hour to track down the error when running trac-admin.

Also, I did miss some places where the username must be added to the scripts, as I was trying to go too fast.

I’ve given up on Collaboa for this function, as I need to spend time debugging my own code. Running Rails apps on Dreamhost can be tricky, and if the app needs some advanced configuration, like talking to Subversion, then the problems compound to the point where you spend all of your time trying to keep the site running.

This entry was posted on Sat, 21 Apr 2007 19:36:46 GMT . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.
Tags


Trackbacks

Use the following link to trackback from your own site:
http://localhost:5000/trackbacks?article_id=install-trac-on-dreamhost&day=21&month=04&year=2007

Comments

Leave a response

  1. […] Install Trac on Dreamhost (part 2) fixing some missing path settings in the original article (tags: hosting subversion sysadmin web) […]

  2. Joey about 1 month later:

    I had more trouble getting Trac up and running on Dreamhost than Collaboa! I moved to Collaboa after months of restarting Trac daily just to keep it running. Plus when one of my projects made the front page of Digg, it lasted a whole 10 seconds before being killed by procwatch.

    Collaboa on the other hand would slow under load, but at least it avoided the wrath of procwatch. In the end I gave up and moved to a VSP for my hosting, you can get a lot more performance for a few extra bucks.

    Thanks for the Active Directory tips too, they came in very handy!

    – J

Leave a comment