- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-08-03T12:33:11+00:00","default:wikiwriter","wikiwriter")
#author("2020-08-04T06:52:47+00:00","default:wikiwriter","wikiwriter")
&tag(CentOS8/Apache);
*目次 [#f44fea54]
#contents
*関連ページ [#wf074462]
*参考情報 [#xd22cc31]
*インストール [#of71ae64]
-パッケージでインストールする場合
dnf install @httpd/common
dnf install @httpd/devel
-起動設定
systemctl start httpd
systemctl enable httpd
*rbenv環境でPassengerを使う [#s8a555dc]
-passengerを入れてpassenger-install-apache2-moduleを実行
$ gem install passenger
$ passenger-install-apache2-module
-インストール後表示される情報をメモ。
#pre{{
LoadModule passenger_module /home/sora/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/passenger-6.0.6/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /home/sora/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/passenger-6.0.6
PassengerDefaultRuby /home/sora/.rbenv/versions/2.6.6/bin/ruby
</IfModule>
}}
-さらにこれも必要。
#pre{{
<VirtualHost *:80>
ServerName www.yourhost.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /somewhere/public
<Directory /somewhere/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
}}
-httpd.confの一番したにあるIncludeの上に書くのが正解?
*トラブルシューティング [#had95edf]
**ユーザーディレクトリの内容が表示できない [#s425c4c2]
-以下のエラー
because search permissions are missing on a component of the path
-ユーザーディレクトリのパーミッションが700だとだめ。755にする。
**railsの内容が表示できない [#v126df27]
-以下のエラー
[client 192.168.10.101:52774] AH01630: client denied by server configuration:
-どこかのアクセス設定で拒否になっているのが原因っぽい。Directory内に以下を追加。
Require all granted