{"id":7,"date":"2008-04-22T23:30:10","date_gmt":"2008-04-22T21:30:10","guid":{"rendered":"http:\/\/www.mediamill.de\/blog\/2008\/03\/22\/aktivieren-und-deaktivieren-von-apache2-modulen-a2enmod-a2dismod\/"},"modified":"2015-01-03T16:36:09","modified_gmt":"2015-01-03T14:36:09","slug":"aktivieren-und-deaktivieren-von-apache2-modulen-a2enmod-a2dismod","status":"publish","type":"post","link":"https:\/\/www.mediamill.de\/blog\/2008\/04\/22\/aktivieren-und-deaktivieren-von-apache2-modulen-a2enmod-a2dismod\/","title":{"rendered":"Aktivieren und Deaktivieren von Apache2 Modulen &#8211; a2enmod &#8211; a2dismod"},"content":{"rendered":"<p>Nachdem ich schon etliche Male die Apache Konfigurationsdatei \/etc\/sysconfig\/apache2 bei Suse von Hand bearbeitet hatte, um Apache2 Module zu aktivieren, ist mir letztens ein Befehl oder, besser gesagt, zwei Befehle untergekommen, die das Ganze automatisieren.<\/p>\n<p>Dies sind <strong>a2enmod<\/strong> um Apache Module zu aktivieren<\/p>\n<p>und<\/p>\n<p><strong>a2dismod<\/strong> um Apache Module wieder zu deaktivieren.<\/p>\n<p>Der Syntax ist denkbar einfach:<\/p>\n<p><strong>a2enmod MODULNAME<\/strong> aktiviert das Apache2 Modul MODULNAME<\/p>\n<p><strong>a2dismod MODULNAME<\/strong> deaktiviert das Apache2 Modul MODULNAME<\/p>\n<p>Weiterhin listet der Befehl <strong>a2enmod -l<\/strong> alle aktivierten Apache2 Module auf.<\/p>\n<p>Beispiel:<\/p>\n<p><strong>a2enmod ssl <\/strong>aktiviert das ssl Modul.<\/p>\n<p><strong>a2dismod ssl<\/strong> deaktiviert das ssl Modul.<\/p>\n<p>Nachtrag 06\/2011:<\/p>\n<p><strong>Apache Modulhandling unter Debian 6<\/strong><\/p>\n<p>a2enmod -l funktioniert unter Debian nicht. Eine Liste mit den aktivierten Apache modulen erh\u00e4lt man mit:<br \/>\n<strong>ls -l \/etc\/apache2\/mods-enabled\/<\/strong><\/p>\n<p>Eine Liste mit den zur Verf\u00fcgung stehenden Modulen erh\u00e4lt man mit:<br \/>\n<strong>ls -l \/etc\/apache2\/mods-available\/<\/strong><\/p>\n<p>Eine weitere M\u00f6glichkeit sich alle geladenen Module anzuzeigen ist der Befehl<br \/>\n<strong>apachectl -M<br \/>\n<\/strong>(-M \u00a0Dump a list of loaded Static and Shared Modules.)<\/p>\n<pre class=\"brush:shell\">apachectl -M\r\nLoaded Modules:\r\n core_module (static)\r\n log_config_module (static)\r\n logio_module (static)\r\n version_module (static)\r\n mpm_prefork_module (static)\r\n http_module (static)\r\n so_module (static)\r\n alias_module (shared)\r\n auth_basic_module (shared)\r\n authn_file_module (shared)\r\n ....\r\nSyntax OK<\/pre>\n<p>Weitere Infos: <a href=\"http:\/\/www.ducea.com\/2006\/05\/30\/managing-apache2-modules-the-debian-way\/\">Apache Modulverwaltung unter Debian<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nachdem ich schon etliche Male die Apache Konfigurationsdatei \/etc\/sysconfig\/apache2 bei Suse von Hand bearbeitet hatte, um Apache2 Module zu aktivieren, ist mir letztens ein Befehl oder, besser gesagt, zwei Befehle untergekommen, die das Ganze automatisieren. Dies sind a2enmod um Apache Module zu aktivieren und a2dismod um Apache Module wieder zu deaktivieren. Der Syntax ist denkbar [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11,46,5,9,6],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-apache","category-apache2","category-debian","category-linux","category-suse","category-tipps"],"_links":{"self":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":8,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":748,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions\/748"}],"wp:attachment":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}