{"id":18,"date":"2018-08-15T20:19:52","date_gmt":"2018-08-15T19:19:52","guid":{"rendered":"https:\/\/wissing.me\/daan\/blog\/?p=18"},"modified":"2018-08-15T20:19:52","modified_gmt":"2018-08-15T19:19:52","slug":"updating-wordpress-and-plugins","status":"publish","type":"post","link":"https:\/\/daan.wsng.eu\/index.php\/2018\/08\/15\/updating-wordpress-and-plugins\/","title":{"rendered":"Updating WordPress and plugins"},"content":{"rendered":"<p>In my <a href=\"https:\/\/wissing.me\/daan\/blog\/index.php\/2018\/08\/06\/getting-wordpress-to-work-on-my-synology-nas\/\">previous post<\/a> you could read how I installed the basic package for WordPress on my Synology NAS. There are still some things to do (styling, interesting content, enabling comments&#8230;), but one of the more important things is the ability to update. WordPress in itself is not a bad package, but infamous for having had security leaks in the core product and especially the plugins. And if I don&#8217;t do this now, I probably never will.\u00a0 So, off we go:<\/p>\n<p><!--more--><\/p>\n<ul>\n<li>Me: WP, please update this package for me<\/li>\n<li>WP: Sure, what is the login for your FTP?<\/li>\n<li>Me: FTP? OK, well, then I will enable FTP and create a user, just for you. Here you are. Now please update<\/li>\n<li>WP: Error: could not create directory.\n<p><figure id=\"attachment_19\" aria-describedby=\"caption-attachment-19\" style=\"width: 742px\" class=\"wp-caption alignright\"><img loading=\"lazy\" class=\"wp-image-19 size-full\" src=\"https:\/\/wissing.me\/daan\/blog\/wp-content\/uploads\/ftp_fail.png\" alt=\"Plugin update failure\" width=\"742\" height=\"220\" srcset=\"https:\/\/daan.wsng.eu\/wp-content\/uploads\/ftp_fail.png 742w, https:\/\/daan.wsng.eu\/wp-content\/uploads\/ftp_fail-300x89.png 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><figcaption id=\"caption-attachment-19\" class=\"wp-caption-text\">Red bars continue to bugger me<\/figcaption><\/figure><\/li>\n<li>Me: What was I thinking, expecting this to go right on the first try. Hookay, let&#8217;s try to do something with user rights.<\/li>\n<li>[Me poking around with the user rights in the Synology Admin screen under sage advice from Google]<\/li>\n<li>Me: All right, I think this might work: <em>http<\/em> is the user that Apache is running in, and I&#8217;ve given it all kinds of rights and ownership to the WP directory.\n<p><figure id=\"attachment_22\" aria-describedby=\"caption-attachment-22\" style=\"width: 917px\" class=\"wp-caption alignright\"><img loading=\"lazy\" class=\"wp-image-22 size-full\" src=\"https:\/\/wissing.me\/daan\/blog\/wp-content\/uploads\/owner-1.png\" alt=\"User rights blog directory\" width=\"917\" height=\"965\" srcset=\"https:\/\/daan.wsng.eu\/wp-content\/uploads\/owner-1.png 917w, https:\/\/daan.wsng.eu\/wp-content\/uploads\/owner-1-285x300.png 285w, https:\/\/daan.wsng.eu\/wp-content\/uploads\/owner-1-768x808.png 768w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><figcaption id=\"caption-attachment-22\" class=\"wp-caption-text\">This seems like it might work<\/figcaption><\/figure><\/li>\n<li>WP: Error: could not create directory.<\/li>\n<li>Me: Shit, of course. Let&#8217;s google some more.<\/li>\n<li>Google: Make sure to set the rights of the user <em>http<\/em> correct.<\/li>\n<li>Me: Hmm, upon inspection I&#8217;ve set the rights of the group <em>http <\/em>right, but not of the user <em>http<\/em>. Google, some more help please?<\/li>\n<li>Google: Use this on the command line:<\/li>\n<\/ul>\n<pre>chown -R http:http daan\/blog<\/pre>\n<ul>\n<li>Me: OK then, fine. Guess that I will have to enable SSH, log into the NAS from my local network, get admin rights and then change the owner with this Linux command. I thought installing WordPress would be easy&#8230;\n<p><figure id=\"attachment_23\" aria-describedby=\"caption-attachment-23\" style=\"width: 945px\" class=\"wp-caption alignright\"><img loading=\"lazy\" class=\"wp-image-23 size-full\" src=\"https:\/\/wissing.me\/daan\/blog\/wp-content\/uploads\/ssh_fix.png\" alt=\"Setting user rights on the blog directory\" width=\"945\" height=\"248\" srcset=\"https:\/\/daan.wsng.eu\/wp-content\/uploads\/ssh_fix.png 945w, https:\/\/daan.wsng.eu\/wp-content\/uploads\/ssh_fix-300x79.png 300w, https:\/\/daan.wsng.eu\/wp-content\/uploads\/ssh_fix-768x202.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><figcaption id=\"caption-attachment-23\" class=\"wp-caption-text\">I learned a Linux command!<\/figcaption><\/figure><\/li>\n<li>Me: Okay, lets try again!<\/li>\n<li>WP: Updating plugin succeeded!<\/li>\n<li>Me: Yay!<\/li>\n<\/ul>\n<p>Tl;dr: Make sure that the user rights are set correctly, even if that means getting down &amp; low in the command line and using SSH.<\/p>\n<p>Still to do: styling, interesting content and maybe a Twitter card. But first&#8230; install all the plugins!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post you could read how I installed the basic package for WordPress on my Synology NAS. There are still some things to do (styling, interesting content, enabling comments&#8230;), but one of the more important things is the ability to update. WordPress in itself is not a bad package, but infamous for having&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"twitterCardType":"","cardImageID":0,"cardImage":"","cardTitle":"","cardDesc":"","cardImageAlt":"","cardPlayer":"","cardPlayerWidth":0,"cardPlayerHeight":0,"cardPlayerStream":"","cardPlayerCodec":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":3,"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daan.wsng.eu\/index.php\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}