在安装了2个python的机器上运行pgAdmin4

时间:2019-02-09 20:08:29

标签: python apache2 python-3.7 pgadmin-4 fedora-29

我已经在Fedora 29机器上安装了pgAdmin4,并从this tutorial获得了帮助。这是我的配置:

# /etc/httpd/conf.d
LoadModule wsgi_module modules/mod_wsgi.so
WSGIDaemonProcess pgadmin processes=1 threads=25
WSGIScriptAlias /pgadmin4 /usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.wsgi
WSGIPythonHome /usr/lib64/python3.7
# WSGIPythonPath /usr/lib/python3.7/site-packages/pgadmin4-web
WSGIProcessGroup pgadmin

<Directory /usr/lib/python3.7/site-packages/pgadmin4-web/>
    WSGIProcessGroup pgadmin
    WSGIApplicationGroup %{GLOBAL}
    <Files pgAdmin4.wsgi>
        Require all granted
    </Files>
    <IfModule mod_authz_core.c>
        # Apache 2.4
        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>

但是,当我尝试访问localhost/pgadmin4时,什么也没有显示(甚至没有错误),并且指示圆圈永远存在。我安装了2个版本的python(2.7和3.7),似乎它们有问题。知道我想念什么吗?

0 个答案:

没有答案