Hi Walter, I will confirm that Apache can read that directory when I get home. When I looked at the process apache was running as root:www-data which is what I set the permissions of the directory to. The Apache error log and the access long didn't have any additional detail. As a matter of fact the error log had the same statement as the browser window. I did not think to check the system log to see if there were access permissions to the ruby binary in my home directory. I will definitely check that again once I get home.
This box would be used for production not development so installing it as root I wouldn't have a problem with. I just remembered seeing something on RVMs site about it not being the recommended approach for one reason or another which is why I did not try it. On Dec 14, 10:45 am, Walter Lee Davis <[email protected]> wrote: > On Dec 14, 2011, at 10:15 AM, Vell wrote: > > > > > > > > > > > Hi Brynjolfur, > > > Yes I believe I have. Here is what I have as my configs: > > > /etc/apache2/apache2.conf: > > > LoadModule passenger_module /home/vmcilwain/.rvm/gems/ruby-1.9.2-p290/ > > gems/passenger 3.0.11/ext/apache2/mod_passenger.so > > PassengerRoot /home/vmcilwain/.rvm/gems/ruby-1.9.2-p290/gems/ > > passenger-3.0.11 > > PassengerRuby /home/vmcilwain/.rvm/wrappers/ruby-1.9.2-p290/ruby > > > /etc/apache2/sites-available/vell: > > > <VirtualHost *:80>` > > ServerName vell > > DocumentRoot "/home/lmcilwain/vell/current/public" > > ErrorLog "/var/log/apache2/vell-error_log" > > CustomLog "/var/log/apache2/vell-access_log" common > > <Directory "/var/www/sites/vell/current/public"> > > Options All > > AllowOverride All > > Order allow,deny > > Allow from all > > </Directory> > > RewriteEngine On > > # Remove the www > > RewriteCond %{HTTP_HOST} ^vell$ [NC] > > RewriteRule ^(.*)$http://vell/$1[R=301,L] > > </VirtualHost> > > Does Apache have permission to read that folder? Do you see anything in your > Apache error log, or the system error log, related to access permissions on > that particular Ruby binary? > > I've only ever installed this combination on a server, and I use the "install > as root" path through the RVM instructions in that case. It works perfectly > for me when I do that, but since this is your dev box (I'm assuming) you > might not want to do the same. > > Walter > > > > > > > > > > > On Dec 14, 3:25 am, Brynjolfur Thorvardsson <[email protected]> wrote: > >> Have you told Apache where to find your application? > > >> -----Oprindelig meddelelse----- > >> Fra: [email protected] > >> [mailto:[email protected]] På vegne af Vell > >> Sendt: 14. december 2011 04:53 > >> Til: Ruby on Rails: Talk > >> Emne: [Rails] How can I get RVM/Passenger/Apache2 to play nicely together > > >> Hello all, > > >> Can anyone point me to any solid documentation on how to set up a > >> production server using RVM, Passenger, and Apache2? I have been at this > >> for a week with absolutely no luck at all so I thought I would post here > >> to see if anyone has managed to get this to work and written down the > >> steps they used. > > >> Right now with my current implementation, I am getting a 404 error when I > >> attempt to locally point my browser to a basic rails application. > > >> I am attempting to set this up on an Ubuntu 11.10 system. > > >> Any help would be greatly appreciated. > > >> Thanks in advance. > > >> -- > >> 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 [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> For more options, visit this group > >> athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > > 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

