{"id":30,"date":"2017-08-30T18:39:13","date_gmt":"2017-08-30T17:39:13","guid":{"rendered":"http:\/\/www.hoagieshouse.com\/blog\/?p=30"},"modified":"2017-09-03T17:51:56","modified_gmt":"2017-09-03T16:51:56","slug":"getting-wordpress-to-work-on-debian-based-systems","status":"publish","type":"post","link":"http:\/\/www.hoagieshouse.com\/blog\/uncategorized\/getting-wordpress-to-work-on-debian-based-systems\/","title":{"rendered":"Getting WordPress to work on Debian based systems."},"content":{"rendered":"<p>I followed the numerous tutorials on getting WordPress working on a Debian based Linux box. I&#8217;m doing this on Raspbian on a Raspberry Pi, but I expect the same gotcha to apply to all distros. The problem is the Cant Create Directory message when updating or installing themes and plugins.\u00a0<!--more--><\/p>\n<p>Debian likes to install things in unusual locations, in the case of wordpress it&#8217;s \/usr\/share\/wordpress, but &#8211; Here&#8217;s the gotcha &#8211; There&#8217;s a symlink to \/usr\/share\/wordpress\/wp-content in \/usr\/lib\/wordpress. To allow wordpress to apply updates to its self, you need to make sure BOTH are owned by www-data in group www-data and have suitable write permissions.<\/p>\n<p>I&#8217;ll probably go into the full ins and outs of setting up WordPress on Raspbian in a future post, but there are tons of other tutorials out there, I just wanted to get this snippet into the public domain before anyone else tears out as much hair as I did.<\/p>\n<p>&nbsp;<\/p>\n<p>EDIT:<\/p>\n<p>After several nights of experimentation I&#8217;m coming to the conclusion that the best way of running wordpress on Debian is NOT to use apt-get to install it, but to grab the latest version directly from wordpress and install it as it expects to be installed. Debian&#8217;s weird setup seems to make it all a bit flaky.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I followed the numerous tutorials on getting WordPress working on a Debian based Linux box. I&#8217;m doing this on Raspbian on a Raspberry Pi, but I expect the same gotcha to apply to all distros. The problem is the Cant Create Directory message when updating or installing themes and plugins.\u00a0<\/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":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/posts\/30"}],"collection":[{"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":5,"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":35,"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions\/35"}],"wp:attachment":[{"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hoagieshouse.com\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}