Re: Deploying Rails App on Debian Etch / Apache2 / Passenger

Marc Byrd
Mon, 18 May 2009 20:14:05 -0000

While I don''t recommend this as a long-term solution, it should help
know
whether this is the issue (make a backup first w/ current permissions):

chown -R www-data:www-data /usr/lib/...gems

I believe I also did chmod 777 /usr/bin/<gem_file>

I also modified the /etc/init.d/apache2 script, adding to the ENV line
things like:
ENV="env -i LANG=C
PATH=/usr/local/bin:/usr/bin:/bin:/usr/lib/ruby/gems/1.8/gems/simple_record-1.0.2/bin:/usr/lib/ruby/gems/1.8/gems/cloud_cache-1.0.1/bin"

/etc/init.d/apache2 restart -

(The more proper way to do this [should be built into
./bin/passenger-install-apache2-module ?] is to give these files group
permissions, include www-data in the group).

Other observations:
 1)  I had to include the full path for passenger-install-apache2-module,
didn''t work as # passenger-install-apache2-module , not found)
 2)  script/console, script/runner, script/server - all worked fine, but
passenger/apache2 didn''t work until I got permissions right.

Good luck,


m

On Mon, May 18, 2009 at 11:08 AM, karl
<kpbode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

>
> Ok,
>
> tried these things. The gems are the same.
> Changing permissions doesn''t do anything. Running irb as www-data
> works fine. Should be a rails problem since it doesn''t work with
> script/console...
>
> On 18 Mai, 19:33, César
<cesare.d...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Karl,
> >       are you sure that all the gems installed in your Mac and on
> > Debian are exactly the same version?
> >       You must check carefully the list of gems and versions in both
> > parts to go out of doubt.
> >
> > Good luck.
> >
> >                         Cesar
> >
> > _______________________________________________
> >
> > Gnu/Linux count user #416024
> >
> > Pagina personal :http://www.cesardiaz.com.ar
> > Mi blog :http://cesarediaz.blogspot.com
> > Twitter :http://twitter.com/cesarstafe
> > My github account:http://github.com/cesarediaz
> > Skype: cesarstafe
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---