There aren't any other sites defined on this box. It is a fresh install with nothing done to it aside from this latest attempt. I would think that RVM has access to my files in my home directory since it is installed under my account. As far as apache goes, it is running as www-data. Is it that I just need to add www-data to the vmcilwain group? or should I just make the app itself world readable to make it simple?
On Dec 15, 1:41 pm, Frederick Cheung <[email protected]> wrote: > On 15 Dec 2011, at 17:54, Vell <[email protected]> wrote: > > > > > > > > > > > > > rails new site -d mysql > > > Added the following to /etc/apache2/sites-available/site > > <VirtualHost *:80> > > ServerName localhost > > ServerAlias localhost > > DocumentRoot /home/vmcilwain/www/site/public > > </VirtualHost> > > > sudo a2ensite site > > > sudo a2enmod rewrite > > > sudo service apache2 reload > > > Attempted to hit the application with the browser (http://localhost) > > and I get: It Works! (Apache standard page) > > Attempt to hit the application with the location http://localhost/site > > and I get: Not Found The requested URL /site was not found on this > > server > > > According to the guide, I should have seen the welcome aboard page of > > the site application in my www directory. > > Actually, with the setup you've got the rails app should be available > athttp://localhost(you have to add extra stuff to mount a rails app in a > subdirectories) > > Do you already have other sites hosted on this machine? Sounds like a > different virtual host file (which is just serving up the stock apache page) > is taking precedence. > With your setup you'll also need to ensure that both the app is readable by > apache as well as all the rvm installed files > > Fred > > > > > > > > > I can't be this hopeless, what else can I be doing wrong :-/ Any help > > again is greatly appreciated. > > > On Dec 14, 3:10 am, mg1313 <[email protected]> wrote: > >> Try the documentation from > >> here:http://www.mirceagoia.com/2011/11/ruby-on-rails-installation-ubuntu-l... > > >> Mircea > > >> On Dec 13, 10:52 pm, Vell <[email protected]> wrote: > > >>> 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 at http://groups.google.com/group/rubyonrails-talk?hl=en.

