Re: Maybe some help with rvm on ubuntu 10.04?

51 views
Skip to first unread message

Michał Papis

unread,
Jul 23, 2012, 8:22:54 AM7/23/12
to Fayez Naccache, rvm (Ruby Version Manager)
forwarding to mailing group, can you show your apache passenger configuration?

Cheers,
Michal

On Mon, Jul 23, 2012 at 1:03 PM, Fayez Naccache
<fayez.n...@gmail.com> wrote:
> Hello M. Michał,
>
> I am having some trouble running chiliproject instance in Ubuntu 10.04 with
> passenger.
> I have a linux user ree with which I installed RVM and ruby EE 1.8.7 with
> RVM.
>
> I have all gems installed in a gemset, and have set an rvmrc file.
> but still have a passenger error Could not find activesupport-2.3.14 in any
> of the sources (Bundler::GemNotFound)
> I think the webserver is not seeing the gemset that I created for
> chiliproject. I made it trusted.
> I also added the ree user to www-data group.
>
>
> Also the production.log does not seem to be writable although it is 777.
> It only contains # Logfile created on Fri Jul 20 14:40:02 +0200 2012
>
> Do you have any idea how to fix or to get infos to move forward in my
> analysis?
>
> Thank you
> Fayez
>

Cameron

unread,
Jul 23, 2012, 10:12:08 AM7/23/12
to rubyversi...@googlegroups.com
I use apache2 with RVM for development, hopefully peeking at these configurations can help.

To plug RVM into apache (I am using apache 2.2.22-9 on debian testing), I stored something like this in /etc/apache2/mods-available/passenger.load (of course '/home/cameron' would need to be the appropriate path):

LoadModule passenger_module /home/cameron/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/ext/apache2/mod_passenger.so
PassengerRoot /home/cameron/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12
PassengerRuby /home/cameron/.rvm/wrappers/ruby-1.9.3-p194/ruby

To enable it with apache, I created a sym link to it in /etc/apache2/mods-enabled

sudo ln -s ../mods-available/passenger.load

The rest of configuration was the normal process for a rails app using passenger [1]. If you haven't looked already, be sure to check out RVM's passenger documentation [2]. The setup_load_paths.rb might be of interest!

Hope this helps!


--
Please visit http://rvm.io/ for documentation on rvm.
Please visit https://www.pivotaltracker.com/projects/26822 to see what is being worked on currently.

You received this message because you are subscribed to the Google
Groups "rvm (Ruby Version Manager)" group.
To post to this group, send email to rubyversi...@googlegroups.com
To unsubscribe from this group, send email to
rubyversionmana...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyversionmanager?hl=en

Ethan Cane

unread,
Jul 23, 2012, 10:47:26 AM7/23/12
to rubyversi...@googlegroups.com
I use Ubuntu 12.04 (Precise) running Passenger via Apache2 and place into my /etc/apache2/mods-available/passenger.load just the load directives for Apache. Into my /etc/apache2/mods-available/passenger.conf I place the actual configuration directives.

Why are you using the manual method of symlinking when Apache already provides 'a2enmod'? Just execute this command followed by the 'passenger' module name and you should be all set so long as your paths are configured correctly.

Cameron

unread,
Jul 23, 2012, 11:00:52 AM7/23/12
to rubyversi...@googlegroups.com
You just taught me something! =)

I just wasn't aware of that option and manually enabled it once I noticed they were just sym links, no other reason!

Cam

Ethan Cane

unread,
Jul 23, 2012, 11:08:16 AM7/23/12
to rubyversi...@googlegroups.com
There is also 'a2ensite' for enabling/disabling sites. Don't forget 'a2dismod' and 'a2dissite' for disabling.

:-)
Reply all
Reply to author
Forward
0 new messages