Qiita Conference 2025 Autumn

特別ゲスト12名登壇!! (敬称略)

piacere, 牛尾 剛, 和田 卓人, seya, ミノ駆動, Esteban Suarez, 市谷 聡啓, からあげ, まつもとゆきひろ, みのるん and more…

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

Qiita Conference 2025 Autumn will be held!: 11/5(Wed) - 11/7(Fri)

Qiita Conference is Qiita's largest tech conference, dedicated to engineers in the age of AI!

Keynote Speaker

piacere, Tsuyoshi Ushio, Esteban Suarez, Takuto Wada, seya, MinoDriven, Toshihiro Ichitani, Karaage, Matz, Minorun

View event details
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?