So there are 2 other files that are in the sites-available directory. - default - default-ssl
I changed the name of the of the file called site to default in the sites-available directory and restarted apache and that was still no luck. I also moved the site application into /var/www and www-data the owner /var/www/*. Changed the location of RootDocument in the site file in sites-available and still no luck. I am not sure how to make my .rvm directory readable to the rest of my system without making my entire home directory readable to the entire system. I assume that is not a good idea. On Dec 15, 2:05 pm, Frederick Cheung <[email protected]> wrote: > On 15 Dec 2011, at 18:59, Vell <[email protected]> wrote: > > > 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? > > Clearly there is another virtual host file somewhere, since that welcome to > apache file must be coming from somewhere. Probably also worth checking that > the symlinks from sites-enabled are ok (I assume that's what a2ensite does - > I'm not familiar with that particular way of managing apache.) > > Apache will need to be able to read the rvm files and the app files. The > simplest thing to do in the short term would be to make them both world > readable > > Fred > > > > > > > > > > > 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(youhave 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 > > 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.

