Skip to content

Commit

Permalink
docs updated envs and Miniforge dir (Open-MSS#2412)
Browse files Browse the repository at this point in the history
* doc updated

* indenting level fixed

* add details about the wsgi modules
  • Loading branch information
ReimarBauer authored Jul 3, 2024
1 parent f5739b6 commit 7a7f11e
Showing 1 changed file with 44 additions and 24 deletions.
68 changes: 44 additions & 24 deletions docs/mswms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,21 @@ At current state we have to use pip to install mod_wsgi into the INSTANCE enviro
$ sudo /full/path/to/installed/mod_wsgi-express install-module


This command outputs two lines::

LoadModule wsgi_module "/usr/lib/apache2/modules/mod_wsgi-py310.cpython-310-x86_64-linux-gnu.so"
WSGIPythonHome "/home/mss-demo/miniforge/envs/mssenv"

You have to add the lines into your wsgi_express.conf and wsgi_express.load

Setup a /etc/apache2/mods-available/wsgi_express.conf::

WSGIPythonHome "/home/mss-demo/miniforge/envs/demo/"
WSGIPythonHome "/home/mss-demo/miniforge/envs/mssenv/"


Setup a /etc/apache2/mods-available/wsgi_express.load::

LoadModule wsgi_module "/usr/lib/apache2/modules/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so"
LoadModule wsgi_module "/usr/lib/apache2/modules/mod_wsgi-py310.cpython-310-x86_64-linux-gnu.so"

Enable the new module by a2enmod and reload the apache2 server

Expand All @@ -522,7 +529,7 @@ Configuration of apache mod_wsgi.conf
One possibility to setup the PYTHONPATH environment variable is by adding it to your mod_wsgi.conf. Alternatively you
could add it also to wms.wsgi.

WSGIPythonPath /home/mss/INSTANCE/config:/home/mss/miniforge/envs/instance/lib/python3.X/site-packages
WSGIPythonPath /home/mss/INSTANCE/config:/home/mss/miniforge/envs/mssenv/lib/python3.X/site-packages


By this setting you override the PYTHONPATH environment variable. So you have also to add
Expand All @@ -540,28 +547,41 @@ INSTANCE is a placeholder for your service name::

.
├── INSTANCE
| ├── config
   | └── mswms_settings.py
| | └── mswms_auth.py
| ├── log
   | └── mss_error.log
| └── wsgi
| ├── auth.wsgi
| └── wms.wsgi
├── config
└── mswms_settings.py
└── mswms_auth.py
├── log
└── mss_error.log
└── wsgi
├── auth.wsgi
└── wms.wsgi
├── miniforge
│   ├── bin
│   ├── conda-bld
│   ├── conda-meta
│   ├── envs
| | └── instance
│   ├── etc
│   ├── include
│   ├── lib
│   ├── LICENSE.txt
│   ├── pkgs
│   ├── share
│   ├── ssl
│   └── var
│ ├── bin
│ ├── cmake
│ ├── compiler_compat
│ ├── _conda
│ ├── condabin
│ ├── conda-bld
│ ├── conda_build_config.yaml
│ ├── conda-meta
│ ├── envs
│ │ └── mssenv
│ ├── etc
│ ├── include
│ ├── lib
│ ├── libexec
│ ├── LICENSE.txt
│ ├── locks
│ ├── man
│ ├── pkgs
│ ├── sbin
│ ├── share
│ ├── shell
│ ├── ssl
│ ├── x86_64-conda_cos6-linux-gnu
│ └── x86_64-conda-linux-gnu





Expand Down

0 comments on commit 7a7f11e

Please sign in to comment.