{"id":247,"date":"2017-03-15T19:19:23","date_gmt":"2017-03-15T19:19:23","guid":{"rendered":"http:\/\/www.evermoretechnologies.com\/blog\/?p=247"},"modified":"2017-03-15T19:19:23","modified_gmt":"2017-03-15T19:19:23","slug":"red-hat-and-centos-issues-with-permissions","status":"publish","type":"post","link":"https:\/\/www.evermoretechnologies.com\/blog\/2017\/03\/red-hat-and-centos-issues-with-permissions\/","title":{"rendered":"Red Hat and CentOS issues with permissions"},"content":{"rendered":"<p>I had a server that was running Red Hat that threw an error of:<\/p>\n<p>PHP Fatal error: Uncaught exception &#8216;Zend_Cache_Exception&#8217; with message &#8216;cache_dir &#8221; is not writable<\/p>\n<p>The directory it was trying to write to had the apache user as a group member, and group members had write permissions. \u00a0I even changed the permissions to 777 just to try to fix the issue.<\/p>\n<p>It turned out to be an issue with SULinux and permissions. \u00a0By using this command<\/p>\n<pre>chcon -R -t httpd_sys_content_rw_t {Directory to let apache write to here}<\/pre>\n<p>The issue was fixed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a server that was running Red Hat that threw an error of: PHP Fatal error: Uncaught exception &#8216;Zend_Cache_Exception&#8217; with message &#8216;cache_dir &#8221; is not writable The directory it&#8230; <a href=\"https:\/\/www.evermoretechnologies.com\/blog\/2017\/03\/red-hat-and-centos-issues-with-permissions\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/247"}],"collection":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=247"}],"version-history":[{"count":1,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":248,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/247\/revisions\/248"}],"wp:attachment":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}