1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Passengerモジュールのパスを知る方法

Last updated at Posted at 2013-11-15

本当は passenger-config コマンドあたりで教えてほしいところですが…

ruby -rphusion_passenger -e 'PhusionPassenger.locate_directories; puts PhusionPassenger.apache2_module_path'

もしくは少し短かくして

ruby -rphusion_passenger -e 'p=PhusionPassenger; p.locate_directories; puts p.apache2_module_path'

rbenv などで複数の ruby を使われてる場合は、 間違った ruby で実行しないよう気をつけてください。

追記: passenger-install-apache2-moduleで分かるようです

$ passenger-install-apache2-module --snippet
LoadModule passenger_module /usr/local/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/passenger-4.0.24/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/passenger-4.0.24
PassengerDefaultRuby /usr/local/rbenv/versions/1.9.3-p448/bin/ruby
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?