after fresh install of phpMyAdmin on CentOS 8 Stream I've got problem with "Access Denied".
There isn't more than only simple text.
Console of browser says:
Failed to load resource: the server responded with a status of 403 (Forbidden)
The /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)'
I've installed it at /var/www/html/phpmyadmin. Nothing special has done.
Configured phpmyadmin.conf at /etc/httpd/conf.d like:
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>
Also granted to 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
I haven't done nothing more. Does someone has an idea?