{"id":415,"date":"2016-02-02T17:17:53","date_gmt":"2016-02-02T17:17:53","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=415"},"modified":"2016-02-02T17:17:53","modified_gmt":"2016-02-02T17:17:53","slug":"analyzing-error-with-apache2","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/02\/02\/analyzing-error-with-apache2\/","title":{"rendered":"Analyzing Error with Apache2"},"content":{"rendered":"<p>This customer is receiving an [[an error occurred while processing this directive]] error. This concerns SSI and required more analysis, but this is how I went about it.<\/p>\n<p>I have taken a look at your server and I can see your running apache2 \/ version 2.2.16<\/p>\n<p>$ curl -I somewebsite.com<br \/>\nHTTP\/1.1 301 Moved Permanently<br \/>\nDate: Tue, 02 Feb 2016 17:08:44 GMT<br \/>\nServer: Apache\/2.2.16 (Debian)<br \/>\nLocation: somewebsite.com<br \/>\nVary: Accept-Encoding<br \/>\nContent-Type: text\/html; charset=iso-8859-1<\/p>\n<p>Although I can&#8217;t be certain it looks like there is an issue with the configuration of the apache2, potentially with the moved permanently redirect, but I can&#8217;t say for certain from the error message that is given in the html page. <\/p>\n<p>The web page is certainly responding now that the port is state OPEN\/ACTIVE though, so we are making progress.<\/p>\n<p>$ curl somewebsite.com<br \/>\n<!DOCTYPE HTML PUBLIC \"-\/\/IETF\/\/DTD HTML 2.0\/\/EN\"><br \/>\n<html><head><br \/>\n<title>301 Moved Permanently<\/title><br \/>\n<\/head><body><\/p>\n<h1>Moved Permanently<\/h1>\n<p>The document has moved <a target=\"_blank\" href=\"http:\/\/www.somewebsitea.com\/\">here<\/a>.<\/p>\n<hr>\n<address>Apache\/2.2.16 (Debian) Server at somewebsite.com Port 80<\/address>\n<p><\/body><\/html><\/p>\n<p>It looks like something happens after the redirect\/moved permanently.<\/p>\n<p>I would recommend visiting the site and tail&#8217;ing the access.log and error.log of your server. this is usually \/var\/log\/apache2\/access.log \/var\/log\/apache2\/error.log and \/var\/log\/httpd\/access.log and \/var\/log\/httpd\/error.log, depending on the distribution and configuration this can sometimes be different. <\/p>\n<p>Run something like this:<\/p>\n<p>tail -f \/var\/log\/apache2\/error.log <\/p>\n<p>and then load the website up in your browser and observe the errors seen by apache2 on the server, it&#8217;s most likely the output will be far more verbose on the backend logs than in the front end error given on the web page. <\/p>\n<p>For more information on SSI (server side includes), please see the apache foundation here (I haven&#8217;t discovered exactly where the code is wrong yet and am waiting for customer to give me their virtualhosts configuration\/ httpd.conf)<\/p>\n<p>https:\/\/httpd.apache.org\/docs\/2.2\/howto\/ssi.html<br \/>\nis point, if you require additional assistance we&#8217;d benefit from seeing your virtualhosts configuration from within httpd.conf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This customer is receiving an [[an error occurred while processing this directive]] error. This concerns SSI and required more analysis, but this is how I went about it. I have taken a look at your server and I can see &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/02\/02\/analyzing-error-with-apache2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,15],"tags":[],"class_list":["post-415","post","type-post","status-publish","format-standard","hentry","category-apache","category-cloud"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=415"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/415\/revisions"}],"predecessor-version":[{"id":416,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/415\/revisions\/416"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}