{"id":79,"date":"2006-01-02T18:55:35","date_gmt":"2006-01-02T23:55:35","guid":{"rendered":"http:\/\/blog.elharo.com\/blog\/?p=79"},"modified":"2008-05-28T18:08:06","modified_gmt":"2008-05-28T23:08:06","slug":"two-tips-for-fixing-apache-problems","status":"publish","type":"post","link":"https:\/\/www.elharo.com\/blog\/software-development\/web-development\/2006\/01\/02\/two-tips-for-fixing-apache-problems\/","title":{"rendered":"Two tips for fixing Apache problems"},"content":{"rendered":"<p>1. If something is going wrong (e.g. in my case getting a 403 Forbidden error for pages that should be accessible) the first thing to do is check the error logs. Don&#8217;t even try to fix the problem until you&#8217;ve looked in the error log. &#8220;tail&#8221; is a very useful command to find out just what last went wrong:<\/p>\n<pre><samp>elharo@cafe:\/usr\/httpd\/logs$ tail -4 cafe.elharo.com-error_log\r\n[Mon Jan 02 18:29:45 2006] [error] [client 216.254.67.87] Options FollowSymLinks or \r\nSymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: \r\n\/var\/www\/cafe\/wordpress\/\r\n[Mon Jan 02 18:30:07 2006] [error] [client 216.254.67.87] Options FollowSymLinks or \r\nSymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: \r\n\/var\/www\/cafe\/wordpress\/\r\n[Mon Jan 02 18:32:06 2006] [error] [client 216.254.67.87] Options FollowSymLinks or \r\nSymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: \r\n\/var\/www\/cafe\/wordpress\/\r\n[Mon Jan 02 18:32:10 2006] [error] [client 216.254.67.87] Options FollowSymLinks or \r\nSymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: \r\n\/var\/www\/cafe\/wordpress\/index.php\r\n<\/samp><\/pre>\n<p>2. If the error in the log happens to be, &#8220;Options FollowSymLinks or<br \/>\nSymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden&#8221; add <code>Options +FollowSymLinks<\/code> to your .htaccess file in the affected directory, right before you turn on the rewrite engine. i.e.<\/p>\n<pre>Options +FollowSymLinks \r\n&lt;IfModule mod_rewrite.c>\r\nRewriteEngine On\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. If something is going wrong (e.g. in my case getting a 403 Forbidden error for pages that should be accessible) the first thing to do is check the error logs. Don&#8217;t even try to fix the problem until you&#8217;ve looked in the error log. &#8220;tail&#8221; is a very useful command to find out just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[410],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-flash"],"_links":{"self":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":0,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}