Python: Difference between revisions

From Utopia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
=== WSGI ===
=== WSGI ===


* '''libapache2-mod-wsgi-py3'''
 
 
apt-get install libapache2-mod-wsgi-py3
 
a2enmod wsgi


=== Apache2 ===
=== Apache2 ===

Revision as of 15:17, 6 May 2023


Web Programmierung

WSGI

apt-get install libapache2-mod-wsgi-py3

a2enmod wsgi

Apache2

Benoetigte Apache Module

libapache2-mod-python

Optionale Apache Module

Apache Fehler

Invalid command 'PythonHandler', perhaps misspelled or defined by a module not included in the server configuration


gucken ob die Datei da ist:


cat mods-available/python.load

LoadModule python_module /usr/lib/apache2/modules/mod_python.so


gucken ob die .so da ist:


ll /usr/lib/apache2/modules/mod_python.so

-rw-r--r-- 1 root root 143K Jun 28  2013 /usr/lib/apache2/modules/mod_python.so