M
M
Maxim2019-11-21 09:20:38
Python
Maxim, 2019-11-21 09:20:38

What is the path for Python in WSGIDaemonProcess?

Hello.
I install pgAdmin 4. There is an example conf-file in the manual.

<VirtualHost *>
    ServerName pgadmin.example.com

    WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/path/to/python/virtualenv
    WSGIScriptAlias / /opt/pgAdmin4/web/pgAdmin4.wsgi

    <Directory /opt/pgAdmin4/web>
        WSGIProcessGroup pgadmin
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>

I don't understand the line WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/path/to/python/virtualenv
What is this "virtualenv" path? Where can you read about it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-11-21
@MaxRAF

If you only have pgadmin then you can use system python and remove python-home=/path/to/python/virtualenv . In fact, this is the path where all the necessary python libraries for this instance / virtual server are located. When several different projects work on the same server and use different sets of libraries, it is best to separate them through virtualenv. Each virtualenv can only contain the required libraries for a particular project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question