User Tools

Site Tools


software:owncloud

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:owncloud [2017/12/25 00:31] – Michele Porellisoftware:owncloud [2021/03/01 22:07] (current) – [Re-enable symlink support in data folder] Michele Porelli
Line 13: Line 13:
   * choose Folder for Automatic upload   * choose Folder for Automatic upload
 ===== HowTo ===== ===== HowTo =====
-==== Manual upgrade with shell access ====+==== Remove unwanted Nextcloud advertising ====
 Assuming that your webserver runs with www-data user<code> Assuming that your webserver runs with www-data user<code>
 cd <YOUR_WWW_ROOT> cd <YOUR_WWW_ROOT>
 +sudo -u www-data php  nextcloud/occ config:system:set --type=bool --value=false simpleSignUpLink.shown
 +</code>
 +==== Manual upgrade with shell access ====
 +Assuming that your webserver runs with www-data user
 +=== Preferred way ===
 +<code>sudo -u www-data php <YOUR_WWW_ROOT>/nextcloud/updater/updater.phar</code>
 +=== Alternative way ===
 +<code>cd <YOUR_WWW_ROOT>
 sudo -u www-data php  owncloud/occ maintenance:mode --on sudo -u www-data php  owncloud/occ maintenance:mode --on
 sudo -u www-data mv   owncloud owncloud-old sudo -u www-data mv   owncloud owncloud-old
Line 32: Line 40:
   - Move back "data" and "config" folders from previous installation to the newest just uploaded   - Move back "data" and "config" folders from previous installation to the newest just uploaded
 ==== Re-enable symlink support in data folder ==== ==== Re-enable symlink support in data folder ====
-NOTE: This is not supported by ownCloud team and can result in unexpected behaviours (including data loss and end of the world) +NOTE: This is not supported by ownCloud team and can result in unexpected behaviors (including data loss and the end of the world) 
 + 
 +=== Official way (since Nextcloud 21.0.0) === 
 +  * Add <code>'localstorage.allowsymlinks' => true,</code> to the config file located in nextcloudcloud/config/config.php 
 +=== Alternative #1 (pre Nextcloud 21.0.0) ===
   - Open owncloud/lib/private/Files/Storage/Local.php   - Open owncloud/lib/private/Files/Storage/Local.php
   - Change the variable $allowSymlinks from false to true   - Change the variable $allowSymlinks from false to true
-OR+=== Alternative #2 (pre Nextcloud 21.0.0) ===
   - Look for the row containing "Following symlinks is not allowed" (in 10.0.1 version is located at row 373) and replace the row with: "return $fullPath;"   - Look for the row containing "Following symlinks is not allowed" (in 10.0.1 version is located at row 373) and replace the row with: "return $fullPath;"
  
 +If using any of the two alternative ways, you probably want to disable the integrity check in owncloud/config/config.php adding:
 +<code>'integrity.check.disabled' => true,</code>
 ===== Issues ===== ===== Issues =====
 ==== checksum wrong errors using the desktop client ==== ==== checksum wrong errors using the desktop client ====
software/owncloud.1514161892.txt · Last modified: (external edit)