I reconfigured the httpd config and re-setup pgadmin but received the same
result.
<VirtualHost *:80>
LoadModule wsgi_module modules/mod_wsgi.so WSGIDaemonProcess pgadmin
processes=1 threads=25 python-home=/usr/pgadmin4/venv WSGIScriptAlias /pgadmin4
/usr/pgadmin4/web/pgAdmin4.wsgi
<Directory /usr/pgadmin4/web/>
WSGIProcessGroup pgadmin
WSGIApplicationGroup %{GLOBAL}
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Allow from All
</IfModule>
</Directory>
</VirtualHost>
Here is a list of the directories related to pgadmim if you could verify that
the security is setup correctly:
/var/lib:
drwx------. 4 unconfined_u:object_r:httpd_sys_rw_content_t:s0 apache apache
56 Jun 24 13:29 pgadmin4
/var/lib/pgadmin4:
total 56
-rw-------. 1 unconfined_u:object_r:httpd_sys_rw_content_t:s0 apache apache
56320 Jun 24 13:29 pgadmin4.db
drwx------. 2 unconfined_u:object_r:httpd_sys_rw_content_t:s0 apache apache
50 Jun 24 13:29 sessions
drwxr-xr-x. 2 unconfined_u:object_r:httpd_sys_rw_content_t:s0 apache apache
6 Jun 24 13:24 storage
/var/lib/pgadmin4/sessions:
total 4
-rw-r--r--. 1 system_u:object_r:httpd_sys_rw_content_t:s0 apache apache 368 Jun
24 13:29 2c9742c7-3526-412a-8bcb-65cf6ad2c441
/var/lib/pgadmin4/storage:
total 0
/var/log:
drwxr-xr-x. 2 unconfined_u:object_r:httpd_sys_rw_content_t:s0 apache apache
26 Jun 24 13:24 pgadmin4
/var/log/pgadmin4:
total 0
-rw-r--r--. 1 unconfined_u:object_r:httpd_sys_rw_content_t:s0 apache apache 0
Jun 24 13:24 pgadmin4.log