Friday, 15 February 2013

ruby on rails - What have I done wrong in setting up Passenger/mod_rails? -



ruby on rails - What have I done wrong in setting up Passenger/mod_rails? -

i attempting rails development environment using centos virtual machine. run apache phusion passenger, , access host os entering vm's lan ip (eg 192.168.0.5).

i have been able run rails apps using webrick, , have been able serve static pages , php apache. getting passenger set proving baffling nightmare of endless problems me, , absolutely love help knows they're doing here.

so here's i've done.

booted fresh centos 6.3 machine. using yum, installed httpd (apache 2.2), sqlite-devel, other stuff need. installed rvm (to /home/vagrant/.rvm/), , ruby 2.1.2, can confirm working perfectly. installed passenger rvmsudo passenger-install-apache2-module. added next httpd.conf.

.

loadmodule passenger_module /home/vagrant/.rvm/gems/ruby-2.1.2/gems/passenger-4.0.45/buildout/apache2/mod_passenger.so <ifmodule module_passenger.c> passengerroot /home/vagrant/.rvm/gems/ruby-2.1.2/gems/passenger-4.0.45 passengerdefaultruby /home/vagrant/.rvm/gems/ruby-2.1.2/wrappers/ruby </ifmodule> <virtualhost *:80> servername localhost documentroot /var/www/html/dangerzone/public <directory /var/www/html/dangerzone/public> allow options -multiviews </directory> </virtualhost>

finally, in /var/www/html, executed rails new dangerzone create app.

initially, trying access app gave me passenger error 'no js runtime', thrilled me because i'd spent 5 or hours trying passenger recognised at all. installed node-js through yum, , current error 500, internal server error.

i see nil in /etc/httpd/logs/error_log.

i've followed instructions on rvm , passenger websites letter. i've googled problem until i'd read entire top 30 results. i've wiped vm , started scratch in case did wrong -- same problem. i'm kind of baffled. have screwed obvious?

ruby-on-rails apache passenger

No comments:

Post a Comment