Установка из репозитория
dnf install phppgadmin
Настроить /etc/php.ini
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; extension=pgsql
Настроить /etc/phppgadmin/config.inc.php
$conf['servers'][0]['host'] = 'localhost';
Отредактировать файл конфигурации веб-сервера по потребности
nano /etc/httpd/conf.d/phppgadmin.conf
phppgadmin.conf - по умолчанию
Alias /phppgadmin /usr/share/phppgadmin
<Directory /usr/share/phppgadmin>
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
ErrorDocument 403 "Access is forbidden according to the phpPgAdmin configuration file."
</Directory>
phppgadmin.conf - работающий
Alias /phppgadmin /usr/share/phppgadmin <Directory /usr/share/phppgadmin> Require all granted </Directory>
Проверка корректности конфигурации
apachectl configtest
Перезапуск Apache
systemctl restart httpd
Virtual Class – cannot instantiate
В файле libraries/adodb/adodb.inc.php
nano /usr/share/phppgadmin/libraries/adodb/adodb.inc.php
Закомментировать:
function __construct()
{
die('Virtual Class -- cannot instantiate');
}