Forum: Ruby on Rails apache2 + mod_rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Misantropo (Guest)
on 2009-04-21 19:49
(Received via mailing list)
I followed all instructions in a website for getting mod_rails
running. Everything seemed fine but when i try to access my rails app
keep getting this error message everytime:


We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it
shortly.


Log files doesn't take me anywhere

Here is what i did to install mod_rails on a fresh debian 5 virtual
machine:


1.- Install Debian
2.- Install ssh
  apt-get install ssh
3.- Install Ruby
  apt-get install ruby ri rdoc irb ri1.8 ruby1.8-dev libzlib-ruby
zlib1g
4.- Install Gems
  wget http://rubyforge.org/frs/download.php/55066/rubyge...
  tar zxvf rubygems-1.3.2.tgz
  cd rubygems-1.3.2
  ruby setup.rb
  ln /usr/bin/gem1.8 /usr/bin/gem
  gem update --system
  apt-get install libopenssl-ruby
5.- Install Rails
  gem install rails -y
6.- Install mod_rails prerequisites
  apt-get install make
  apt-get install gcc libc6-dev
  apt-get install build-essential
  apt-get install apache2-prefork-dev
  apt-get install libapr1-dev
7.- Install Apache2, Php, MySQL, phpmyadmin
  apt-get install apache2 php5 php5-mysql mysql-client mysql-server
phpmyadmin
8.- Install mod_rails
  gem install passenger
  passenger-install-apache2-module
9.- Configure apache2
  #Add the following lines to apache2.conf
  LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/
passenger-2.2.1/ext/apache2/mod_passenger.so
  PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1
  PassengerRuby /usr/bin/ruby1.8
Charles J. (Guest)
on 2009-04-21 21:42
(Received via mailing list)
Can you be more forthcoming about the errors in the log. I use ubuntu
and I
had to change the owner and group access on a few files like
environment.rb
to get rails running on ubuntu. This has to do with who the owner is of
the
rails app as it runs. In my case both environmet.rb and
application_controller.rb has to have owner and group modified.
Cheers--

Charles
This topic is locked and can not be replied to.