I’ve been looking to play about with Ruby on Rails for a while just to
see what the fuss is about and now that I have, it looks very
impressive. Unfortunately I can’t seem to get it to run on my shared web
server which is run by the hosting company pair networks (www.pair.com).
I found the handy guide on the wiki that seemed tailor made for my
problems and followed the steps…
I can create an application, and I can view the “Welcome aboard”
starting page. When I click on the ‘About your applicationâ??s
environment’ link however, I get a red box with a 500 error in it rather
than the nice yellow box full of server info that I was expecting.
In following the wiki guide, I differed from the steps in the following
Software versions. I used ruby 1.8.4, gems 0.8.11 and rails 1.1.2.
I didn’t set up a new domain. I assumed that everything would work
fine if I placed the app in a subdirectory of an existing domain. I’m
not quite sure why the wiki page asks you to set up a whole new domain.
My app is installed here… http://kupio.com/railstest/test/public/
… and I haven’t messed with any URL rewriting stuff.
I didn’t fix the shebangs at the tops of the ruby scripts since they
already had the correct path in them.
Things I did/didn’t do are…
I didn’t set up my database info in config/database.yml. I presumed
that the test app would work without that, and I’d only need to do that
once I started coding something proper.
I chmod +x’d the dispatch cgi scripts.
Initially there were log messages in development.log that indicated an
error. I have deleted that log file though and it does not seem to be
getting regenerated. I can’t remember what the error messages were in
the log. I know that this is unhelpful.
If anyone who understands web server configuration better than me can
help, I’d very much appreciate that help. Thanks!