Skip to content

Commit 7a7f11e

Browse files
authored
docs updated envs and Miniforge dir (#2412)
* doc updated * indenting level fixed * add details about the wsgi modules
1 parent f5739b6 commit 7a7f11e

1 file changed

Lines changed: 44 additions & 24 deletions

File tree

docs/mswms.rst

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -505,14 +505,21 @@ At current state we have to use pip to install mod_wsgi into the INSTANCE enviro
505505
$ sudo /full/path/to/installed/mod_wsgi-express install-module
506506

507507

508+
This command outputs two lines::
509+
510+
LoadModule wsgi_module "/usr/lib/apache2/modules/mod_wsgi-py310.cpython-310-x86_64-linux-gnu.so"
511+
WSGIPythonHome "/home/mss-demo/miniforge/envs/mssenv"
512+
513+
You have to add the lines into your wsgi_express.conf and wsgi_express.load
514+
508515
Setup a /etc/apache2/mods-available/wsgi_express.conf::
509516

510-
WSGIPythonHome "/home/mss-demo/miniforge/envs/demo/"
517+
WSGIPythonHome "/home/mss-demo/miniforge/envs/mssenv/"
511518

512519

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

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

517524
Enable the new module by a2enmod and reload the apache2 server
518525

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

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

527534

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

541548
.
542549
├── INSTANCE
543-
| ├── config
544-
   | └── mswms_settings.py
545-
| | └── mswms_auth.py
546-
| ├── log
547-
   | └── mss_error.log
548-
| └── wsgi
549-
| ├── auth.wsgi
550-
| └── wms.wsgi
550+
├── config
551+
└── mswms_settings.py
552+
└── mswms_auth.py
553+
├── log
554+
└── mss_error.log
555+
└── wsgi
556+
├── auth.wsgi
557+
└── wms.wsgi
551558
├── miniforge
552-
│   ├── bin
553-
│   ├── conda-bld
554-
│   ├── conda-meta
555-
│   ├── envs
556-
| | └── instance
557-
│   ├── etc
558-
│   ├── include
559-
│   ├── lib
560-
│   ├── LICENSE.txt
561-
│   ├── pkgs
562-
│   ├── share
563-
│   ├── ssl
564-
│   └── var
559+
│ ├── bin
560+
│ ├── cmake
561+
│ ├── compiler_compat
562+
│ ├── _conda
563+
│ ├── condabin
564+
│ ├── conda-bld
565+
│ ├── conda_build_config.yaml
566+
│ ├── conda-meta
567+
│ ├── envs
568+
│ │ └── mssenv
569+
│ ├── etc
570+
│ ├── include
571+
│ ├── lib
572+
│ ├── libexec
573+
│ ├── LICENSE.txt
574+
│ ├── locks
575+
│ ├── man
576+
│ ├── pkgs
577+
│ ├── sbin
578+
│ ├── share
579+
│ ├── shell
580+
│ ├── ssl
581+
│ ├── x86_64-conda_cos6-linux-gnu
582+
│ └── x86_64-conda-linux-gnu
583+
584+
565585

566586

567587

0 commit comments

Comments
 (0)