前提・実現したいこと
WebサーバとしてApacheを利用し、Railsを構築したいです。
発生している問題・エラーメッセージ
passenger-status -v
$ passenger-status -v ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be: 1. You customized the instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument. If so, please set the environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory and run passenger-status again. 2. The instance directory has been removed by an operating system background service. Please set a different instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument. [oshima@localhost sample04]$ passenger-status ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be: 1. You customized the instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument. If so, please set the environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory and run passenger-status again. 2. The instance directory has been removed by an operating system background service. Please set a different instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument.
該当のソースコード
/etc/httpd/conf/httpd.conf
ServerName localhost:80 <VirtualHost *:80> RailsEnv development PassengerEnabled on ServerName 192.168.56.102:80 DocumentRoot /sample04/public ErrorLog /var/log/httpd/app.error.log CustomLog /var/log/httpd/app.access.log combined AddDefaultCharset SJIS <Directory /sample04/public> AllowOverride all Require all granted Options -MultiViews </Directory>
試したこと
ブラウザからポート80でアクセスしたときにApacheのデフォルトページに遷移してしまいます。
アクセスした際にはRails側のログにはアクセスしたログは残っていませんでした。
Railsプロジェクトは作成済みでポート3000でアクセスしたときはRailsのデフォルト画面に遷移するので、Rails側の設定は問題ないと思っております。
Passengerのステータス確認をしたところ、エラーが表示されるので、Passengerの問題かと思っております。
※httpd.confの設定はソースコードに記載します。
補足情報(FW/ツールのバージョンなど)
・Phusion Passenger
Phusion Passenger 5.2.3
・Apache
Server version: Apache/2.4.6 (CentOS)
・Rails
Rails 4.2.10
※railsのプロジェクトディレクトリ
/sample04
・OS
CentOS Linux release 7.4.1708 (Core)
・MySQL
mysql Ver 14.14 Distrib 5.7.22, for Linux (x86_64) using EditLine wrapper
回答1件
あなたの回答
tips
プレビュー