{"id":975,"date":"2015-11-16T10:40:12","date_gmt":"2015-11-16T10:40:12","guid":{"rendered":"https:\/\/www.taywa.ch\/blog\/?p=975"},"modified":"2015-11-19T12:54:18","modified_gmt":"2015-11-19T12:54:18","slug":"upgrade-von-ubuntu-webserver-von-12-04-precise-pangolin-auf-14-04-lts-trusty-tahr","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/ubuntu\/upgrade-von-ubuntu-webserver-von-12-04-precise-pangolin-auf-14-04-lts-trusty-tahr\/","title":{"rendered":"Upgrade von Ubuntu Webserver von 12.04 Precise Pangolin  auf 14.04 LTS Trusty Tahr"},"content":{"rendered":"<p><strong>Apache<\/strong><\/p>\n<p>Apache\/2.2.22 -&gt; Apache\/2.4.7<\/p>\n<p>Ofizielle Quelle dazu: <a title=\"https:\/\/httpd.apache.org\/docs\/trunk\/upgrading.html\" href=\"https:\/\/httpd.apache.org\/docs\/trunk\/upgrading.html\" target=\"_blank\">https:\/\/httpd.apache.org\/docs\/trunk\/upgrading.html<\/a><\/p>\n<pre>AllowOverride None<\/pre>\n<p><a title=\"https:\/\/httpd.apache.org\/docs\/trunk\/mod\/core.html#allowoverride\" href=\"https:\/\/httpd.apache.org\/docs\/trunk\/mod\/core.html#allowoverride\" target=\"_blank\">https:\/\/httpd.apache.org\/docs\/trunk\/mod\/core.html#allowoverride<\/a><\/p>\n<p>to default, war fr\u00fcher, bei Apache 2.2<\/p>\n<pre>AllowOverride All<\/pre>\n<p>Eine Variante w\u00e4re &#8222;AllowOverride Indexes&#8220; um DirectoryIndex in .htaccess zu erlauben.<\/p>\n<pre>AllowOverride Indexes\r\n<\/pre>\n<p>Alle DirectoryIndex in .htaccess finden die nicht auskommentiert sind:<\/p>\n<pre class=\"lang:default decode:true\">grep -r DirectoryIndex --include .htaccess .\/ | grep -v \\#<\/pre>\n<p>Finde .htaccess files mit auskommentierten\u00a0DirectoryIndex (#DirectoryIndex) und l\u00f6sche diese Linie:<\/p>\n<pre class=\"lang:default decode:true \">grep -r \\#DirectoryIndex -Z -l --include .htaccess .\\ | xargs -0 -n 1 sed -i -e '\/DirectoryIndex\/d'\r\n<\/pre>\n<p>mit:<\/p>\n<p>-r: recursive<br \/>\n-z: no newline<br \/>\n-l: only machting filename, not matching sting<br \/>\n&#8211;include only match .htaccess<\/p>\n<p>um .htaccess f\u00fcr mod_rewrite zu nutzen, nutze die Einstellung:<\/p>\n<pre class=\"lang:default decode:true\">AllowOverride FileInfo Options<\/pre>\n<p>quelle: http:\/\/stackoverflow.com\/questions\/6995545\/htaccess-rewriteengine-not-allowed-here<\/p>\n<p>Wir nutzen auch noch mod_expires, darum brauchen wir auch Indexes:<\/p>\n<pre class=\"lang:default decode:true\">AllowOverride FileInfo Options Indexes<\/pre>\n<p>Damit sind wir ganz nahe wieder bei:<\/p>\n<pre class=\"lang:default decode:true\">AllowOverride All<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Apache\/2.2.22 -&gt; Apache\/2.4.7 Ofizielle Quelle dazu: https:\/\/httpd.apache.org\/docs\/trunk\/upgrading.html AllowOverride None https:\/\/httpd.apache.org\/docs\/trunk\/mod\/core.html#allowoverride to default, war fr\u00fcher, bei Apache 2.2 AllowOverride All Eine Variante w\u00e4re &#8222;AllowOverride Indexes&#8220; um DirectoryIndex in .htaccess zu erlauben. AllowOverride Indexes Alle DirectoryIndex in .htaccess finden die nicht auskommentiert sind: grep -r DirectoryIndex &#8211;include .htaccess .\/ | grep -v \\# Finde .htaccess files<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,72,57,21],"tags":[],"class_list":["post-975","post","type-post","status-publish","format-standard","hentry","category-apache","category-php","category-server","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/comments?post=975"}],"version-history":[{"count":10,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/975\/revisions\/984"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}