CentOs 8 Stream phpMyAdmin - 브라우저를 통해 액세스할 때 "액세스가 거부되었습니다"

CentOs 8 Stream phpMyAdmin - 브라우저를 통해 액세스할 때 "액세스가 거부되었습니다"

CentOS 8 Stream에 phpMyAdmin을 새로 설치한 후 "액세스 거부" 문제가 발생했습니다.

그냥 단순한 말이에요.

브라우저 콘솔에는 다음이 표시됩니다.

Failed to load resource: the server responded with a status of 403 (Forbidden)

이것 /var/log/httpd/error_log:

[Mon Apr 04 15:08:21.674947 2022] [proxy_fcgi:error] [pid XXX] [client XXX] AH01071: Got error 'Unable to open primary script: /var/www/html/phpmyadmin/index.php (Permission denied)'

에 설치했습니다 /var/www/html/phpmyadmin. 특별히 할 일은 없습니다.

phpmyadmin.conf다음과 같이 구성됩니다 /etc/httpd/conf.d.

    Alias /phpmyadmin /var/www/html/phpmyadmin

<Directory /var/www/html/phpmyadmin/>
   AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
      Require all granted
     </RequireAny>
   </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 /var/www/html/phpmyadmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require all granted
     </RequireAny>

   </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>

또한 수여 apache:

[root@machine html]$ ll -a
total 4
drwxrwxrwx.  3 root   root     24 Aug  3  2021 .
drwxr-xr-x.  5 root   root     63 Feb  1 11:53 ..
drwxr-xr-x. 13 apache apache 4096 Mar  3  2022 phpmyadmin

나는 아무것도 하지 않았다. 누구든지 아이디어가 있나요?

관련 정보