現在railsアプリケーションを動かすために、書きの記事を参考にしてサーバーの設定を行っています。
http://www.oiax.jp/rails3book/setup_phusion_passenger.html
一通り設定を終えて、service httpd startを使ってサーバーを再起動しようとしたのですが、
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
というエラーが出てしまいます。
systemctl status httpd.serviceを実行すると
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since 火 2015-10-13 15:43:48 JST; 2min 50s ago
Process: 29607 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 21573 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Process: 29605 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 29605 (code=exited, status=1/FAILURE)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
10月 13 15:43:48 dti-vps-srv728 httpd[29605]: httpd: Syntax error on line 1 of /etc/httpd/conf/httpd.conf: Cannot load /Users/shimizukazutaka/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.20/buildout/apache2/mod_passeng...
10月 13 15:43:48 dti-vps-srv728 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
10月 13 15:43:48 dti-vps-srv728 systemd[1]: Failed to start The Apache HTTP Server.
10月 13 15:43:48 dti-vps-srv728 systemd[1]: Unit httpd.service entered failed state.
というエラーが出て、httpd.confの1行目に問題があるのはわかるのですが、どこが間違っているのかがわかりません。
httpd.confの内容は以下のようになっています。
1 LoadModule passenger_module /Users/shimizukazutaka/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.20/buildout/apache2/mod_passenger.so
2 <IfModule mod_passenger.c>
3 PassengerRoot /Users/shimizukazutaka/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.20
4 PassengerDefaultRuby /Users/shimizukazutaka/.rbenv/versions/2.2.2/bin/ruby
5 </IfModule>
どなたかどこが問題か教えていただけないでしょうか。
よろしくお願い申し上げます。