<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.u2p.org/index.php?action=history&amp;feed=atom&amp;title=Apache2_Errors</id>
	<title>Apache2 Errors - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.u2p.org/index.php?action=history&amp;feed=atom&amp;title=Apache2_Errors"/>
	<link rel="alternate" type="text/html" href="http://wiki.u2p.org/index.php?title=Apache2_Errors&amp;action=history"/>
	<updated>2026-04-04T02:55:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://wiki.u2p.org/index.php?title=Apache2_Errors&amp;diff=367&amp;oldid=prev</id>
		<title>Locke: Created page with &quot;   == Invalid command 'PythonHandler' ==  === Genauer Fehler ===   '''&lt;big&gt;Invalid command 'PythonHandler', perhaps misspelled or defined by a module not included in the server configuration&lt;/big&gt;'''   === Vorgehen ===   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...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.u2p.org/index.php?title=Apache2_Errors&amp;diff=367&amp;oldid=prev"/>
		<updated>2023-05-06T17:00:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;   == Invalid command &amp;#039;PythonHandler&amp;#039; ==  === Genauer Fehler ===   &amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Invalid command &amp;#039;PythonHandler&amp;#039;, perhaps misspelled or defined by a module not included in the server configuration&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;   === Vorgehen ===   gucken ob die Datei da ist:  &amp;#039;&amp;#039;&amp;#039;cat mods-available/python.load&amp;#039;&amp;#039;&amp;#039;  LoadModule python_module /usr/lib/apache2/modules/mod_python.so    gucken ob die .so da ist:    &amp;#039;&amp;#039;&amp;#039;ll /usr/lib/apache2/modules/mod_python.so&amp;#039;&amp;#039;&amp;#039;  -rw-r--r-- 1 root root 143K Jun 28  2013...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Invalid command 'PythonHandler' ==&lt;br /&gt;
&lt;br /&gt;
=== Genauer Fehler ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;big&amp;gt;Invalid command 'PythonHandler', perhaps misspelled or defined by a module not included in the server configuration&amp;lt;/big&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vorgehen ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
gucken ob die Datei da ist:&lt;br /&gt;
&lt;br /&gt;
'''cat mods-available/python.load'''&lt;br /&gt;
&lt;br /&gt;
LoadModule python_module /usr/lib/apache2/modules/mod_python.so&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
gucken ob die .so da ist:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ll /usr/lib/apache2/modules/mod_python.so'''&lt;br /&gt;
&lt;br /&gt;
-rw-r--r-- 1 root root 143K Jun 28  2013 /usr/lib/apache2/modules/mod_python.so&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Bei mir war die Zeile &amp;quot;LoadModule&amp;quot; komischerweise auskommentiert. Wenn ich sie wieder einkommentiere, dann startet Apache2 nicht mehr, ohne Fehlermeldung. Er sagt einfach&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''service apache2 restart'''&lt;br /&gt;
&lt;br /&gt;
Job for apache2.service failed because the control process exited with error code.&lt;br /&gt;
&lt;br /&gt;
See &amp;quot;systemctl status apache2.service&amp;quot; and &amp;quot;journalctl -xe&amp;quot; for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''systemctl status apache2.service'''&lt;br /&gt;
&lt;br /&gt;
apache2.service - The Apache HTTP Server&lt;br /&gt;
&lt;br /&gt;
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)&lt;br /&gt;
&lt;br /&gt;
Active: failed (Result: exit-code) since Sat 2023-05-06 17:03:31 CEST; 7s ago&lt;br /&gt;
&lt;br /&gt;
Docs: &amp;lt;nowiki&amp;gt;https://httpd.apache.org/docs/2.4/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Process: 21674 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)&lt;br /&gt;
&lt;br /&gt;
systemd[1]: Starting The Apache HTTP Server...&lt;br /&gt;
&lt;br /&gt;
apachectl[21674]: Action 'start' failed.&lt;br /&gt;
&lt;br /&gt;
apachectl[21674]: The Apache error log may have more information.&lt;br /&gt;
&lt;br /&gt;
systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE&lt;br /&gt;
&lt;br /&gt;
systemd[1]: apache2.service: Failed with result 'exit-code'.&lt;br /&gt;
&lt;br /&gt;
[systemd[1]: Failed to start The Apache HTTP Server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Die error.log von Apache2 meinte daraufhin:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''tail -n 100 /var/log/apache2/error.log'''&lt;br /&gt;
&lt;br /&gt;
[wsgi:crit] [pid 21542] mod_wsgi (pid=21542): The mod_python module can not be used in conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.&lt;br /&gt;
&lt;br /&gt;
AH00016: Configuration Failed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Problem herausgefunden:&lt;br /&gt;
&lt;br /&gt;
mod_wsgi und mod_python arbeiten in der aktuellen Version nicht mehr zusammen. Es gab irgendwie Probleme mit dem Thread-Management der C-Lib... Die Lösung soll ein&lt;br /&gt;
&lt;br /&gt;
Zitat: &amp;quot;...you shouldn't be using mod_python any more. Use a proper Python web framework with a more modern template system instead.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Wikipedia sagt dazu:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Eine konzeptionelle Weiterentwicklung von mod_python ist mod_wsgi.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also erstmal das mod_python ausradieren... :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''apt-get purge &amp;lt;code&amp;gt;libapache2-mod-python libapache2-mod-python-doc&amp;lt;/code&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dann die apache2 config meiner Seite anpassen:&lt;br /&gt;
&lt;br /&gt;
Laut des Quick Configuration Guides &amp;lt;nowiki&amp;gt;https://modwsgi.readthedocs.io/en/develop/user-guides/quick-configuration-guide.html&amp;lt;/nowiki&amp;gt; einfach nen Skript-Alias einbauen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''vi /etc/apache2/sites-available/subdomain.domain.tld'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ServerName subdomain.domain.tld&lt;br /&gt;
&lt;br /&gt;
  ServerAlias domain.tld *.domain.tld&lt;br /&gt;
&lt;br /&gt;
  DocumentRoot /var/www/subdomain.domain.tld&lt;br /&gt;
&lt;br /&gt;
  WSGIScriptAlias / /var/www/subdomain.domain.tld /index.wsgi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Apache neu starten&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''service apache2 restart'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
und TADAAAAAAA... :)&lt;/div&gt;</summary>
		<author><name>Locke</name></author>
	</entry>
</feed>