[Rails] Re: any luck installing RoR with apache / cpanel setup?

Helium Exchange
Mon, 27 Mar 2006 18:59:50 -0000

not sure who your hosting company is, but with mine here''s how i set up
a rails app at my hosting
company (networkredux.com):

There are two paths you can go down,
1. I want a rails application to run on my main domain at the root
level, e.g. mydomain.com
2. I want to run multiple rails applications or not make my rails
application my root application.

Path 1.
You need to point apache to your rails applications public directory,
this can be done using an ssh
session and creating a symbolic link.
e.g.
ssh youraccount.com
rails railsapp
mv public_html public_html_bak
ln -s ~/railsapp/public ~/public_html


Path 2.
First, login to cpanel and create your new subdomain, we will call this
subdomain rails for the example.
Now ssh into your account, and remove the directory cpanel created and
replace it with a symbolic link
to your rails application.
e.g.
rails railsapp
cd ~/public_html
rm -r -f rails
ln -s ~/railsapp/public ~/public_html/rails

Josh Kieschnick <jjkiesch@...> writes:

>
> i just went through installing RoR on a cpanel setup and everything
> seems to work except for deployment. i go through the entire process of
> setting up a new rails app on a cpanel account and i get:
>
> Not Found
> The requested URL /testapp/index.html was not found on this server.
>
> Additionally, a 404 Not Found error was encountered while trying to use
> an ErrorDocument to handle the request.
> Apache/1.3.34 Server at media.mymediaglo.com Port 80
>
> is there anyone out there that has had a successful implementation of
> this?
>