Forum: Ruby on Rails gnarly permission issue using fcgi

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
sbeam (Guest)
on 2007-06-20 19:51
(Received via mailing list)
deploying a Rails app for the first time on a mediatemple (dv) server
using capistrano and fcgi

everything looks OK but when I go to access the app, I get 500 errors
with things like

/usr/lib/ruby/1.8/fileutils.rb:1246:in `initialize': Permission
denied -
/var/www/vhosts/xxxxxxx.com/app/current/public/../config/../public/stylesheets/dhtml_calendar/demo.css
(Errno::EACCES)

these are for stylesheets (?!) - I looked at fileutils.rb and at that
line it is trying to open the file for writing, as part of copy_file().
If I make the file world-writable it just hangs up on the next one in
line. Why is it trying to copy the files anyway?

Surely the whole app doesn't have to be writable by Apache, right? I was
following the otherwise excellent guide here
http://www.berbs.us/archives/2007/02/05/setting_up...

but it makes no mention of permissions issues.

Anyone have any idea what I screwed up?

thanks
Sam
This topic is locked and can not be replied to.