ruby on rails - installing passenger on Apache2 using rvm -
i've installed apache2 , runs okay.
and i've installed rvm following this link.
after that, i've execute follow commands order. of these commands this link installing redmine.
rvm install 1.8.7 rvm use 1.8.7 gem install rails -v=2.3.5 gem install postgres-pr pq gem install i18n -v=0.4.2 gem install passenger passenger-install-apache2-module
and append apache2.conf
loadmodule passenger_module /home/myhome/.rvm/gems/ruby-1.8.7-p330/gems/passenger-3.0.2/ext/apache2/mod_passenger.so passengerroot /home/myhome/.rvm/gems/ruby-1.8.7-p330/gems/passenger-3.0.2 passengerruby /home/myhome/.rvm/wrappers/ruby-1.8.7-p330/ruby
this log apache after restart
[notice] apache/2.2.16 (ubuntu) php/5.3.3-1ubuntu9.3 suhosin-patch phusion_passenger/3.0.2 configured -- resuming normal operations
but!!!, if open redmine root page, shows file list in public directory. think passenger may not work correctly.
why? , how fix this? i've tried can 2 days t-t
have added section apache config? tells apache using rails application:
<virtualhost :*80> servername myapp documentroot /root-to-your-path/public </virtualhost>
and restarted apache? read more here: http://www.modrails.com/documentation/users%20guide%20apache.html#_deploying_a_ruby_on_rails_application
Comments
Post a Comment