{"id":1733,"date":"2019-08-16T13:27:11","date_gmt":"2019-08-16T18:27:11","guid":{"rendered":"https:\/\/peintinger.com\/?p=1733"},"modified":"2019-08-16T13:27:11","modified_gmt":"2019-08-16T18:27:11","slug":"upgrading-nextcloud-on-plesk-server","status":"publish","type":"post","link":"https:\/\/peintinger.com\/2019\/08\/16\/upgrading-nextcloud-on-plesk-server\/","title":{"rendered":"Upgrading NextCloud on PLESK Server"},"content":{"rendered":"<p>I encountered timeouts and problems with the web updater of NextCloud. Since it is super easy to use the command line updater and nothing like that has appeared here I think this is the way to go. I run a root server with PLESK. I use PHP 7.3 installed via plesk for the cloud subdomain.<\/p>\n<p>Here are all the commands:<\/p>\n<p>Change directory to wherever your NextCloud installation is located:<\/p>\n<p>[code] cd \/var\/www\/vhosts\/DOMAIN\/cloud [\/code]<\/p>\n<p>Your USER would be www-data or the owner of the domain in PLESK:<\/p>\n<p>[code]<br \/>\nsudo -u USER \/opt\/plesk\/php\/7.3\/bin\/php updater\/updater.phar<br \/>\n[\/code]<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1745\" data-permalink=\"https:\/\/peintinger.com\/2019\/08\/16\/upgrading-nextcloud-on-plesk-server\/2019-08-16_09-13_1-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?fit=900%2C461&amp;ssl=1\" data-orig-size=\"900,461\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2019-08-16_09-13_1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?fit=525%2C525&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?resize=300%2C154&#038;ssl=1\" alt=\"\" width=\"300\" height=\"154\" class=\"alignnone size-medium wp-image-1745\" srcset=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?resize=300%2C154&amp;ssl=1 300w, https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?resize=768%2C393&amp;ssl=1 768w, https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?resize=600%2C307&amp;ssl=1 600w, https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?w=900&amp;ssl=1 900w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Say &#8220;yes&#8221; to start the upgrade.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1742\" data-permalink=\"https:\/\/peintinger.com\/2019\/08\/16\/upgrading-nextcloud-on-plesk-server\/2019-08-16_09-13-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?fit=899%2C486&amp;ssl=1\" data-orig-size=\"899,486\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2019-08-16_09-13\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?fit=525%2C525&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?resize=300%2C162&#038;ssl=1\" alt=\"\" width=\"300\" height=\"162\" class=\"alignnone size-medium wp-image-1742\" srcset=\"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?resize=768%2C415&amp;ssl=1 768w, https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?resize=600%2C324&amp;ssl=1 600w, https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13-1.png?w=899&amp;ssl=1 899w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Say no here! The system php maybe different from the one used by Plesk.<\/p>\n<p>[code]<br \/>\nsudo -u USER \/opt\/plesk\/php\/7.3\/bin\/php occ upgrade<br \/>\n[\/code]<\/p>\n<p>This checks if some maintenance on db side (not indexed columns) needs to be taken care of.<\/p>\n<p>[code]<br \/>\nsudo -u USER \/opt\/plesk\/php\/7.3\/bin\/php .\/occ db:add-missing-indices<br \/>\n[\/code]<\/p>\n<p>Then switch off the maintenance mode.<\/p>\n<p>[code]<br \/>\nsudo -u USER \/opt\/plesk\/php\/7.3\/bin\/php occ maintenance:mode &#8211;off<br \/>\n[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrade NextCloud from command line.<\/p>\n","protected":false},"author":1,"featured_media":1745,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19],"tags":[9,80,31],"class_list":["post-1733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux","tag-nextcloud","tag-plesk"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/peintinger.com\/wp-content\/uploads\/2019\/08\/2019-08-16_09-13_1-1.png?fit=900%2C461&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6W04n-rX","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/posts\/1733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/comments?post=1733"}],"version-history":[{"count":8,"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/posts\/1733\/revisions"}],"predecessor-version":[{"id":1750,"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/posts\/1733\/revisions\/1750"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/media\/1745"}],"wp:attachment":[{"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/media?parent=1733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/categories?post=1733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peintinger.com\/wp-json\/wp\/v2\/tags?post=1733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}