How should permissions be set for a Rails app?

I’m a newbie and I’m having a tough time figuring out how the
permissions need to be set to get a Rails app running on a shared host.

I’m attempting to follow the fastCGI instructions here:
http://wiki.rubyonrails.com/rails/pages/FastCGI

Now, I’m getting this error:

You don’t have permission to access /dispatch.fcgi/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.

I have checked the permissions and they’re 777

This actually brings up an interesting Topic.

What do the permissions for Rforum to run on a a shared host?

I’ve never really found a good tuturial that describes how permissions
should be set for a Ruby / Rails web application.

I’d appreciate any references to info that can help.

thanks,
Bryan

p.s. for what it’s worth here are my current permissions.

this is Home:

drwxr-x— 3 XXXXXX XXXXXX 4096 Dec 14 18:20 public_ftp
drwxr-xr-x 2 XXXXXX XXXXXX 4096 Jan 12 18:54 public_html
drwxr-xr-x 3 XXXXXX XXXXXX 4096 Jan 6 12:19 rforum

and here is an LS -LA for the Rforum app: ( rforum/trunk )
drwxr-xr-x 15 xxxxxx xxxxxx 4096 Jan 11 16:07 .
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:19 …
drwxr-xr-x 7 xxxxxx xxxxxx 4096 Jan 6 12:20 app
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:21 attachments
drwxr-xr-x 4 xxxxxx xxxxxx 4096 Jan 10 17:15 config
drwxr-xr-x 4 xxxxxx xxxxxx 4096 Jan 6 12:21 db
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:22 ferret_index
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:22 lang
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:22 lib
-rw-r–r-- 1 xxxxxx xxxxxx 1059 Jan 6 12:22 LICENSE
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:22 log
drwxr-xr-x 7 xxxxxx xxxxxx 4096 Jan 13 12:13 public
-rwxr-xr-x 1 xxxxxx xxxxxx 1767 Jan 6 12:23 Rakefile.rb
-rw-r–r-- 1 xxxxxx xxxxxx 1024 Jan 11 16:07 README
drwxr-xr-x 5 xxxxxx xxxxxx 4096 Jan 6 12:23 script
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:23 server
drwxr-xr-x 7 xxxxxx xxxxxx 4096 Jan 6 12:19 .svn
drwxr-xr-x 7 xxxxxx xxxxxx 4096 Jan 6 12:25 test

and lastly here is the rforum/trunk/public LS -LA
-rw-r–r-- 1 xxxxxx xxxxxx 99 Jan 6 12:22 404.html
-rw-r–r-- 1 xxxxxx xxxxxx 69 Jan 6 12:22 500.html
-rwxr-xr-x 1 xxxxxx xxxxxx 479 Jan 6 12:22 dispatch.cgi
-rwxrwxrwx 1 xxxxxx xxxxxx 874 Jan 13 12:13 dispatch.fcgi
-rwxr-xr-x 1 xxxxxx xxxxxx 479 Jan 6 12:22 dispatch.rb
-rw-r–r-- 1 xxxxxx xxxxxx 4710 Jan 6 12:22 favicon.ico
-rwxr-xr-x 1 xxxxxx xxxxxx 2550 Jan 6 12:22 .htaccess
drwxr-xr-x 4 xxxxxx xxxxxx 4096 Jan 6 12:22 images
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:22 javascripts
-rw-r–r-- 1 xxxxxx xxxxxx 43 Jan 6 12:22 robots.txt
drwxr-xr-x 8 xxxxxx xxxxxx 4096 Jan 6 12:23 skins
drwxr-xr-x 3 xxxxxx xxxxxx 4096 Jan 6 12:23 stylesheets
drwxr-xr-x 7 xxxxxx xxxxxx 4096 Jan 6 12:22 .svn

Are those permission correct?

Which need to be changed?

On 1/17/06, Bryan W. [email protected] wrote:

Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.

I’m guessing this is an Apache issue, not something to do with
filesystem permissions.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs