Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:nextcloud [2019/05/11 10:00]
Marc
howto:nextcloud [2020/05/13 15:29] (current)
Marc rh-php72 to rh-php73
Line 4: Line 4:
 **Information applies to:** NethServer 7.x, Nextcloud 16.x  (for previous versions check old revisions of this document)\\ **Information applies to:** NethServer 7.x, Nextcloud 16.x  (for previous versions check old revisions of this document)\\
  
-NethServer 7 provides a preconfigured Nextcloud instance integrated with other NethServer services.+[[https://​nextcloud.com/​|Nextcloud]] provides a safe, secure, and compliant file synchronization and sharing solution on servers that you control. ​NethServer 7 provides a preconfigured Nextcloud instance integrated with other NethServer services. 
 + 
 +Note: With the release of Nextcloud 18.0.4 we switched from PHP 7.2 to PHP 7.3\\
  
-<WRAP center round tip 75%> 
-With the release of Nextcloud 16 we also switched from PHP 7.1 to PHP 7.2\\ 
-If there are no dependency problems and PHP 7.1 is no longer required by any other application,​ it can be removed: 
-    yum remove *rh-php71* 
-</​WRAP>​ 
  
  
Line 25: Line 22:
 **How can I run Nextcloud'​s`occ` command?​**\\ **How can I run Nextcloud'​s`occ` command?​**\\
 `occ` command should be run as the HTTP user (apache) and with the same php version used by your Nextcloud instance. One method to call `occ` command is: `occ` command should be run as the HTTP user (apache) and with the same php version used by your Nextcloud instance. One method to call `occ` command is:
-<​file>​sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ</​file>​+<​file>​sudo -u apache scl enable rh-php73 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ</​file>​
 \\ \\
 **After updating/​upgrading Nextcloud, the apps are disabled**\\ **After updating/​upgrading Nextcloud, the apps are disabled**\\
Line 31: Line 28:
 <​file>​ <​file>​
 # example: enabling calendar app # example: enabling calendar app
-sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ app:enable calendar+sudo -u apache scl enable rh-php73 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ app:enable calendar
 </​file>​ </​file>​
 \\ \\
Line 40: Line 37:
 ## Troubleshooting ## Troubleshooting
 ### How to reset Nextcloud'​s admin password ### How to reset Nextcloud'​s admin password
-<​file>​sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ user:​resetpassword admin</​file>​+<​file>​sudo -u apache scl enable rh-php73 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ user:​resetpassword admin</​file>​
  
 \\ \\
 ###​Nextcloud remains in maintenance mode after an upgrade ###​Nextcloud remains in maintenance mode after an upgrade
-<​file>​sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ maintenance:​mode --off</​file>​+<​file>​sudo -u apache scl enable rh-php73 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ maintenance:​mode --off</​file>​
  
 \\ \\
 ###"​Nextcloud will be updated to version xx.x.x"​ message is shown after an upgrade ###"​Nextcloud will be updated to version xx.x.x"​ message is shown after an upgrade
 This could be due to a partial upgrade done by the rpm packages. The specific issue might have been reflected on server logs. By running `occ upgrade` command you'll either finish the upgrade process or get some errors showing the problem:\\ This could be due to a partial upgrade done by the rpm packages. The specific issue might have been reflected on server logs. By running `occ upgrade` command you'll either finish the upgrade process or get some errors showing the problem:\\
-<​file>​sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ upgrade</​file>​+<​file>​sudo -u apache scl enable rh-php73 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ upgrade</​file>​
  
 \\ \\
Line 71: Line 68:
 Under some circumstances,​ a file could remain inaccessible due to an unreleased lock. To manually release the locks: Under some circumstances,​ a file could remain inaccessible due to an unreleased lock. To manually release the locks:
  
-    sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ maintenance:​mode --on+    sudo -u apache scl enable rh-php73 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ maintenance:​mode --on
     ​     ​
     mysql nextcloud     mysql nextcloud
Line 77: Line 74:
     \q     \q
     ​     ​
-    sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ maintenance:​mode --off+    sudo -u apache scl enable rh-php73 -- php -dmemory_limit=512M /​usr/​share/​nextcloud/​occ maintenance:​mode --off
  
 \\ \\
Line 139: Line 136:
 ## Apps and 3rd. party integrations ## Apps and 3rd. party integrations
   * [[:​collabora|Collabora CODE]]   * [[:​collabora|Collabora CODE]]
-  * [[:​onlyoffice|OnlyOffice]]+  * [[:​onlyoffice|OnlyOffice ​Document Server]] 
 +  * OnlyOffice Community Document Server (built-in support through Nextcloud apps, since Nextcloud 18)
   * [[userguide:​webtop5_nextcloud_itegration|WebTop5]]   * [[userguide:​webtop5_nextcloud_itegration|WebTop5]]
 +  * Bookmarks app
 +    * If Bookmarks app fails to install due to gmp library not being available, install the library for the php version being used:
 +<​file>​
 +yum install rh-php73-php-gmp
 +systemctl reload rh-php73-php-fpm
 +</​file>​
  
 \\ \\