Uncategorized 20 Jun 2005 11:36 am
Typo on DH
Here’s what I did to get typo running at DreamHost:
First, confirm from the shell:
which ruby -> should be /usr/bin/ruby
gem list -> should include rails 0.13.1, etc.
You’ll need to edit dispatch.fcgi and dispatch.rb to have the correct path to ruby.
I set up typo in my web root. If you don’t want that, I’d highly suggest setting up a sub domain and pointing it to the public folder of typo:
/home/cgiusername/public_html/typo/public/
Then edit the .htaccess file to point it to use .fcgi:
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
And set the permissions of at least the dispatch.fcgi and dispatch.rb to 755:
chmod 755 public/*
It’s a good idea just to do the whole public directory.
Next, if you’re on Windows run:
dos2unix public/*
Before I set up the sub domain I was having problems getting the app to handle the requests right. It is definitely easier to use a whole separate host if you have any spare ones. I’ll probably go back and set up several hosts such as:
blog.convergentarts.com
wiki. " "
forum. " "
etc. because it is both a lot easier to get your app running, but you also have some nice division of your htdocs so you don’t overwrite your wiki when you change your blog.