Hallo Richard,
Danke, aber esklappt immer noch nicht ...
Am 02.02.21 um 22:09 schrieb Richard Hafenscher:
Hallo,
hilft vielleicht das:
https://docs.mailman3.org/projects/postorius/en/latest/deployment.html?
highlight=apache#apache-with-mod-wsgi
Habe jetzt folgende '/etc/apache2/conf.d/mailman.conf:
Alias /static "/srv/www/webapps/mailman/postorius/static"
Order deny,allow
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Allow from all
</IfModule>
</IfVersion>
</Directory>
WSGIScriptAlias /mm3 /srv/www/webapps/mailman/postorius/wsgi.py
<Files wsgi.py>
Order deny,allow
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Allow from all
</IfModule>
</IfVersion>
</Files>
</Directory>
bekomme dann aber:
[Wed Feb 03 13:04:04.185845 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] mod_wsgi (pid=28342): Target WSGI script
'/srv/www/webapps/mailman/postorius/wsgi.py' cannot be loaded as Python
module.
[Wed Feb 03 13:04:04.185924 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] mod_wsgi (pid=28342): Exception occurred processing
WSGI script '/srv/www/webapps/mailman/postorius/wsgi.py'.
[Wed Feb 03 13:04:04.186175 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] Traceback (most recent call last):
[Wed Feb 03 13:04:04.186271 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File
"/srv/www/webapps/mailman/postorius/wsgi.py", line 17, in <module>
[Wed Feb 03 13:04:04.186281 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] application = get_wsgi_application()
[Wed Feb 03 13:04:04.186297 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File
"/usr/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in
get_wsgi_application
[Wed Feb 03 13:04:04.186305 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] django.setup(set_prefix=False)
[Wed Feb 03 13:04:04.186320 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File
"/usr/lib/python3.6/site-packages/django/__init__.py", line 19, in setup
[Wed Feb 03 13:04:04.186328 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] configure_logging(settings.LOGGING_CONFIG,
settings.LOGGING)
[Wed Feb 03 13:04:04.186343 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File
"/usr/lib/python3.6/site-packages/django/conf/__init__.py", line 79, in
__getattr__
[Wed Feb 03 13:04:04.186351 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] self._setup(name)
[Wed Feb 03 13:04:04.186365 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File
"/usr/lib/python3.6/site-packages/django/conf/__init__.py", line 66, in
_setup
[Wed Feb 03 13:04:04.186373 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] self._wrapped = Settings(settings_module)
[Wed Feb 03 13:04:04.186387 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File
"/usr/lib/python3.6/site-packages/django/conf/__init__.py", line 157, in
__init__
[Wed Feb 03 13:04:04.186395 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Feb 03 13:04:04.186409 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File
"/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
[Wed Feb 03 13:04:04.186418 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] return _bootstrap._gcd_import(name[level:],
package, level)
[Wed Feb 03 13:04:04.186433 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File "<frozen importlib._bootstrap>", line 994,
in _gcd_import
[Wed Feb 03 13:04:04.186461 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File "<frozen importlib._bootstrap>", line 971,
in _find_and_load
[Wed Feb 03 13:04:04.186475 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] File "<frozen importlib._bootstrap>", line 953,
in _find_and_load_unlocked
[Wed Feb 03 13:04:04.186504 2021] [wsgi:error] [pid 28342] [remote
192.168.101.8:53530] ModuleNotFoundError: No module named 'settings'
python3 apachache module is installed
vssys002:/etc/apache2/conf.d # rpm -qa | grep python | grep apa
apache2-mod_wsgi-python3-4.5.18-lp152.4.7.x86_64
apache wsgi module is active:
vssys002:/etc/apache2/conf.d # a2enmod wsgi
"wsgi" already present
vssys002:/etc/apache2/conf.d # rpm -qa | grep mailman
python3-mailmanclient-3.3.1-lp152.17.1.noarch
python3-mailman-3.3.2-lp152.43.1.noarch
python3-mailman-web-0.0.1-lp152.9.1.noarch
python3-django-mailman3-1.3.4-lp152.12.1.noarch
vssys002:/etc/apache2/conf.d # rpm -qa | grep postorius
postorius-web-1.3.3-lp152.28.1.noarch
postorius-web-uwsgi-1.3.3-lp152.28.1.noarch
python3-postorius-1.3.3-lp152.28.1.noarch
was habe ich vergessen ?
Bin für jede weitere Hilfe dankbar.
--
Christian
------------------------------------------------------------
https://join.worldcommunitygrid.org?recruiterId=177038
------------------------------------------------------------
http://www.sc24.de - Sportbekleidung
------------------------------------------------------------