{"id":725,"date":"2016-03-06T02:01:20","date_gmt":"2016-03-06T02:01:20","guid":{"rendered":"http:\/\/www.tech-g.com\/?p=725"},"modified":"2016-03-06T02:03:01","modified_gmt":"2016-03-06T02:03:01","slug":"server-unable-to-read-htaccess-file-denying-access-to-be-safe","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2016\/03\/06\/server-unable-to-read-htaccess-file-denying-access-to-be-safe\/","title":{"rendered":"Server unable to read htaccess file, denying access to be safe"},"content":{"rendered":"<p>I am very new to centos (Debian usually), and on my cpanel \/ whm server, i got this error<\/p>\n<pre>\r\nForbidden\r\n\r\nYou don't have permission to access \/ on this server.\r\nServer unable to read htaccess file, denying access to be safe\r\n\r\nAdditionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.\r\n<\/pre>\n<p>Something seemed seriously wrong, I had already chowned all the files<\/p>\n<pre>\r\nchown -R techg:techg public_html\r\n<\/pre>\n<p>I also even deleted the htaccess file, but still, the server was reporting the error.<\/p>\n<p>The solution turned out to be making the public_html directory executable<\/p>\n<p>I found that out through the apache log files that read<\/p>\n<p>[Sun Mar 06 02:48:10.894154 2016] [core:crit] [pid 1261] (13)Permission denied: [client 46.xxx.216.169:55886] AH00529: \/home\/techg\/public_html\/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that &#8216;\/home\/techg\/public_html\/&#8217; is executable<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am very new to centos (Debian usually), and on my cpanel \/ whm server, i got this error Forbidden You don&#8217;t have permission to access \/ on this server. Server unable to read htaccess file, denying access to be safe Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-725","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=725"}],"version-history":[{"count":5,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/725\/revisions"}],"predecessor-version":[{"id":730,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/725\/revisions\/730"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}