phpadminにログインしようとすると、ログイン画面の前に403エラーが出ます。
シングルドメインでは、動作して、マルチドメインにして、ディレクトリ分岐したらおかしくなりました。
apache、phpまでは動いています。
エラーメッセージやログを検索しまくって解決を試みましたが解決できないのでここに質問を書きます。
環境:さくらのVPS
OS:cent-os 7.6.1810
apache:2.4.6
php:7.1.25
/etc/httpd/conf.d/phpMyadmin.confの中
Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin <Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8 <IfModule mod_authz_core.c> # Apache 2.4 #Require local Require all granted </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 </IfModule> </Directory> <Directory /usr/share/phpMyAdmin/setup/> <IfModule mod_authz_core.c> # Apache 2.4 Require local </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 </IfModule> </Directory> # These directories do not require access over HTTP - taken from the original # phpMyAdmin upstream tarball # <Directory /usr/share/phpMyAdmin/libraries/> Order Deny,Allow Deny from All Allow from None </Directory> <Directory /usr/share/phpMyAdmin/setup/lib/> Order Deny,Allow Deny from All Allow from None </Directory> <Directory /usr/share/phpMyAdmin/setup/frames/> Order Deny,Allow Deny from All Allow from None </Directory> # This configuration prevents mod_security at phpMyAdmin directories from # filtering SQL etc. This may break your mod_security implementation. # #<IfModule mod_security.c> # <Directory /usr/share/phpMyAdmin/> # SecRuleInheritance Off # </Directory> #</IfModule>
ここまでシングルドメインで、apacheのルートディレクトリを/var/www/html/の状態にした時は動作したのですが、マルチドメインにして、/var/www/html/●●●、/var/www/html/○○○、/var/www/html/△△△と/etc/httpd/conf.d/vhost.confを作成して、マルチドメインにしたところ、phpまでは動作したものの、phpadminは404エラーになってしまいます。
エラーメッセージやエラーログからはディレクトリ関係がおかしいところまではわかったのですが、これ以上どうして良いかわかりません。
宜しく、ご教授頂けると幸いです。
ブラウザのエラーメッセージ
Forbidden You don't have permission to access /phpmyadmin/ on this server.
エラーログ
Sat Jan 12 20:29:54.079347 2019] [autoindex:error] [pid ] [client ] AH01276: Cannot serve directory /usr/share/phpMyAdmin/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/14 10:58 編集