Sam Waller wrote:

<snip>

> When I try to run a test.rb file I'm getting this in the error.log file:
> 
> [Fri Dec 08 13:52:30 2006] [error] [client 127.0.0.1] (2)\xd9\x05i\xb7: exec of
> '/var/www/site/test.rb' failed
> [Fri Dec 08 13:52:30 2006] [error] [client 127.0.0.1] Premature end of script headers: test.rb

You'll get that if you have DOS style (CRLF) line endings in your 
script. Convert to Unix (LF) and see if that fixes it.

Steve