{"id":906,"date":"2016-05-08T17:52:52","date_gmt":"2016-05-08T15:52:52","guid":{"rendered":"http:\/\/hobbykeller.spdns.de\/?p=906"},"modified":"2016-08-20T02:55:06","modified_gmt":"2016-08-20T00:55:06","slug":"updating-owncloud-8-0-to-8-1-7","status":"publish","type":"post","link":"https:\/\/hobbykeller.spdns.de\/?p=906","title":{"rendered":"Updating ownCloud (8.0.* to 8.1.7)"},"content":{"rendered":"<p>This post describes the update procedure for an ownCloud instance running on an OpenWRT installation. Note that you have to update your owncloud installation in rather small steps. You normally cannot skip any minor versions (i.e. jumping from version 8.<strong>0<\/strong>.8 to version 8.<strong>2<\/strong>.1. <!--more--><\/p>\n<p>[alert type=&#8221;info&#8221; icon-size=&#8221;normal&#8221;]The procedure described below has also been tested for updates from 8.1.7 to 8.1.9 and from 8.1.9 to 8.2.7.[\/alert]<\/p>\n<h1>PHP5 Filter Support now required<\/h1>\n<p>At some point from version 8.0 to 8.1 ownCloud added the prerequisite that PHP5 filter support must activated\u00a0 in your PHP installation (you can activate this feature in the menuconfig under Langugages\/PHP).<\/p>\n<h1>Steps for updating<\/h1>\n<p>Download the subsequent minor stable version\u00a0(in my case 8.1.7) from the <a href=\"https:\/\/owncloud.org\/changelog\/\" target=\"_blank\">ownCloud website<\/a> (<code>tar.bz2<\/code> package recommended) and scp it to the <code>\/www<\/code> directory of the router<\/p>\n<p>On the router, rename your current <code>owncloud<\/code> directory to <code>oldcloud<\/code>:<\/p>\n<pre class=\"lang:default decode:true \" title=\"Updating ownCloud\">root@wdr4900:\/www# mv owncloud oldcloud<\/pre>\n<p>Then untar the <code>tar.bz2<\/code> package you just downloaded (it will re-create an <code>owncloud<\/code> directorey and put everything into that directory):<\/p>\n<pre class=\"lang:default decode:true\" title=\"Uncompressing ownCloud's tar.bz2 file on the router\">root@wdr4900:\/www# tar jxf owncloud-8.1.7.tar.bz2<\/pre>\n<p>Now copy both the data directory and the config.php file from the oldcloud directory to the new owncloud directory:<\/p>\n<pre class=\"lang:default decode:true \" title=\"Transferring data and config files for ownCloud\">root@wdr4900:\/www# cp -R oldcloud\/data owncloud\/\r\nroot@wdr4900:\/www# cp oldcloud\/config\/config.php owncloud\/config\/<\/pre>\n<p>Reboot the router and open your ownCloud homepage with a browser. It should detect that there is an updated ownCloud package and ask you to start the installation. Click to start the installation. You will get a message that a couple of applications have been deactivated during the upgrade and that manual reinstallation is required.<\/p>\n<figure id=\"attachment_910\" aria-describedby=\"caption-attachment-910\" style=\"width: 725px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-910\" src=\"http:\/\/hobbykeller.spdns.de\/wp-content\/uploads\/2016\/05\/ocupdate.png\" alt=\"Update messages from ownCloud\" width=\"725\" height=\"498\" srcset=\"https:\/\/hobbykeller.spdns.de\/wp-content\/uploads\/2016\/05\/ocupdate.png 725w, https:\/\/hobbykeller.spdns.de\/wp-content\/uploads\/2016\/05\/ocupdate-300x206.png 300w, https:\/\/hobbykeller.spdns.de\/wp-content\/uploads\/2016\/05\/ocupdate-437x300.png 437w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><figcaption id=\"caption-attachment-910\" class=\"wp-caption-text\">Update messages from ownCloud<\/figcaption><\/figure>\n<h1>Restoring the apps<\/h1>\n<p>At the end of the successfull installation, ownCloud tells you that third party apps have been disabled. This will normally concern the follwing apps:<\/p>\n<ol>\n<li><a href=\"https:\/\/apps.owncloud.com\/content\/show.php\/Calendar?content=168707\" target=\"_blank\">calendar<\/a><\/li>\n<li><a href=\"https:\/\/apps.owncloud.com\/content\/show.php\/Contacts?content=168708\" target=\"_blank\">contacts<\/a><\/li>\n<li><a href=\"https:\/\/apps.owncloud.com\/content\/show.php\/ownNote+-+Notes+Application?content=168512\" target=\"_blank\">ownNote<\/a><\/li>\n<li><a href=\"https:\/\/apps.owncloud.com\/content\/show.php\/Tasks?content=164356\" target=\"_blank\">tasks<\/a><\/li>\n<\/ol>\n<p>Download the <code>zip<\/code> \/<code>tar.gz<\/code> files which match your ownCloud version, scp these files to <code>\/www\/owncloud\/apps<\/code> and extract them. Clean up the archive files afterwards.<\/p>\n<p>Log in as administrator into your ownCloud web, go to the add apps section and select the &#8220;Not enabled&#8221; category. The apps you just extracted should show up as &#8220;Experimental&#8221;. Enable them one by one &#8211; i.e. you click enable for the first app, wait a bit, log out and then log in again. (You will probably seen a message at the log in page that ownCloud needs another update). Proceed like that for all 4 applications.<\/p>\n<h1>Check Security &amp; Setup Warnings<\/h1>\n<p>Check for warnings on the admin home page. On OpenWRT systems, two warnings are particularly common:<\/p>\n<ol>\n<li>No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our <a href=\"https:\/\/doc.owncloud.org\/server\/8.1\/go.php?to=admin-performance\">documentation<\/a>.<\/li>\n<li>The &#8220;Strict-Transport-Security&#8221; HTTP header is not configured to least &#8220;15768000&#8221; seconds. For enhanced security we recommend enabling HSTS as described in our <a href=\"https:\/\/hobbykeller.spdns.de\/index.php\/settings\/admin#admin-tips\">security tips<\/a>.<\/li>\n<\/ol>\n<p>As per the second warning, we can safely ignore it. HSTS strictly enforces HTTPS for all connections. While this may be desirable, we have a dual setup: anything which is not going to connect through https will be directed to the public web site. Therefore HTTPS is already strictly enforced on our server.<\/p>\n<p>Those who still want to enable HTTS on their server, should edit their webserver&#8217;s config file according to the <a href=\"https:\/\/raymii.org\/s\/tutorials\/HTTP_Strict_Transport_Security_for_Apache_NGINX_and_Lighttpd.html\" target=\"_blank\">instructions here<\/a>.<\/p>\n<p>As per the memory cache recommandation, one could try to aditionally install memcached which is available in menuconfig&#8217;s general Network section. Worth a try for the next release.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post describes the update procedure for an ownCloud instance running on an OpenWRT installation. Note that you have to update your owncloud installation in rather small steps. You normally<span class=\"more-button\"><a href=\"https:\/\/hobbykeller.spdns.de\/?p=906\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Updating ownCloud (8.0.* to 8.1.7)<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,16],"tags":[181,182,21,178,180,179],"class_list":["post-906","post","type-post","status-publish","format-standard","hentry","category-linux","category-openwrt","tag-8-0","tag-8-1","tag-owncloud","tag-php5-filter","tag-roll-version","tag-update"],"_links":{"self":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=906"}],"version-history":[{"count":10,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/906\/revisions"}],"predecessor-version":[{"id":989,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/906\/revisions\/989"}],"wp:attachment":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}