S 5e4401abd24a1ec9acd4159946f33876 Passenger

エラー画面の変更

/usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.15/lib/phusion_passenger/templates/error_layout.html.erb
らへん

インストール

gemでpassengerをインストール

[admin@mindia ~]$ gem install passenger
Successfully installed passenger-2.2.5
1 gem installed
Installing ri documentation for passenger-2.2.5...
Installing RDoc documentation for passenger-2.2.5...

自動でapacheに組み込んでくれる

[admin@mindia ~]$ passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v2.2.5.

This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.
1^H

・-------------------------------------------

httpd.confに下記コードを追加

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module /home/admin/.gem/ruby/1.8/gems/passenger-2.2.5/ext/apache2/mod_passenger.so
PassengerRoot /home/admin/.gem/ruby/1.8/gems/passenger-2.2.5
PassengerRuby /usr/bin/ruby

足りないものも丁寧に教えてくれる

 * To install Curl development headers with SSL support:
   Please run apt-get install libcurl4-openssl-dev or libcurl4-gnutls-dev, whichever you prefer.

 * To install Apache 2 development headers:
   Please run apt-get install apache2-prefork-dev as root.

 * To install Apache Portable Runtime (APR) development headers:
   Please run apt-get install libapr1-dev as root.

 * To install Apache Portable Runtime Utility (APU) development headers:
   Please run apt-get install libaprutil1-dev as root.


Cent

# passengerのインストール
sudo yum install httpd-devel
sudo gem install passenger
sudo passenger-install-apache2-module

# mod_fcgidのインストール
sudo yum install fcgi fcgi-devel mod_fcgid

# Apache再起動
sudo /etc/init.d/httpd restart

もしかして

    他の人の「Passenger」

    S 5e4401abd24a1ec9acd4159946f33876

    関西大学総合情報学部2007年卒。 卒業後「非同期」「主観事典」をテーマにした会社設立。パンデイロやvimなどの打楽器が好き。 Backbone.js 千利休 木村蒹葭堂

    (9773words)

    最新

      最新エントリ

        関連ツイート