Difference between revisions of "Nextcloud"

From wiki
Jump to navigation Jump to search
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
An opensource private cloud solution [https://nextcloud.com].
 
=Installation=
 
=Installation=
 +
 +
Installation is as simple as deploying a new web-site. Tips for installing on [[Synology]] [http://blog.viking-studios.net/en/your-own-cloud-nextcloud-installation-on-a-synology-diskstation-and-dsm-6/ bit outdated] [https://luvis.se/software/install-nextcloud-on-synology-dsm-6/  using php7]
  
 
* The package can be installed in the root of a (virtual) webserver.
 
* The package can be installed in the root of a (virtual) webserver.
  
* The configuration is in <webroot>/config/config.php. To restart the initialization (re)move this file and put a file named CAN_INSTALL in the config directory.
+
* The configuration is in <webroot>/config/config.php. To (re)start the initialization:
 +
# (re)move the config file
 +
# delete all tables in the nextcloud database
 +
# put a file named CAN_INSTALL in the config directory.
 +
# browse to your nextcloud webserver
  
 
* When you have unix-sockets enabled use localhost:<socketpath> as dbhost
 
* When you have unix-sockets enabled use localhost:<socketpath> as dbhost
  
An opensource private cloud solution [https://nextcloud.com].
+
==Allow larger files to be uploaded==
 +
Change php settings:
 +
 
 +
<code>
 +
upload_max_filesize = 16G
 +
 
 +
post_max_size = 16G
 +
</code>
 +
As my nextcloud server is a synology diskstation:
 +
 
 +
vi /volume1/@appstore/PHP7.4/misc/php-fpm.ini
 +
 
 +
/usr/syno/sbin/synoservice --restart pkgctl-PHP7.4
 +
 
 +
 
 +
;Change nginx setting for the nextcloud server
 +
<code>client_max_body_size 0</code>
 +
:This will disable the checking of body size. The php settings rule.
 +
 
 +
==cronjob==
 +
;<code>*/5 * * * * sudo -u http php74 -f /var/www/nextcloud/cron.php</code>
 +
:Configure this
 +
 
 +
==Client installation==
 +
<syntaxhighlight lang=bash>
 +
sudo add-apt-repository ppa:nextcloud-devs/client
 +
sudo apt update
 +
sudo apt install nextcloud-client
 +
</syntaxhighlight>
 +
 
 +
=Troubleshooting=
 +
;<nowiki>sudo -u http php74 /var/www/nextcloud/occ files:scan --all</nowiki>
 +
:Rescan all files (update database)
 +
 
 +
;touch <file>
 +
:When everything looks OK, you fixed mounts and file permissions, try touch on the client.
  
Installation is as simple as deploying a new web-site ([https://www.youtube.com/watch?v=iFGve5MUUnE&feature=emb_rel_end instruction video]).
+
==A file is reported locked and it is not a file-protection issue==
  
Tips for installing on [[Synology]] [http://blog.viking-studios.net/en/your-own-cloud-nextcloud-installation-on-a-synology-diskstation-and-dsm-6/ bit outdated] [https://luvis.se/software/install-nextcloud-on-synology-dsm-6/ using php7]
+
# put Nextcloud in maintenance mode: edit config/config.php and change this line:
 +
::<code>'maintenance' => true,</code>
 +
# Empty table oc_file_locks (the default table prefix is oc_, this prefix can be different or even empty)
 +
# disable maintenance mode (undo first step).
 +
::<code>'maintenance' => false,</code>

Revision as of 18:38, 5 March 2021

An opensource private cloud solution [1].

Installation

Installation is as simple as deploying a new web-site. Tips for installing on Synology bit outdated using php7

  • The package can be installed in the root of a (virtual) webserver.
  • The configuration is in <webroot>/config/config.php. To (re)start the initialization:
  1. (re)move the config file
  2. delete all tables in the nextcloud database
  3. put a file named CAN_INSTALL in the config directory.
  4. browse to your nextcloud webserver
  • When you have unix-sockets enabled use localhost:<socketpath> as dbhost

Allow larger files to be uploaded

Change php settings:

upload_max_filesize = 16G

post_max_size = 16G As my nextcloud server is a synology diskstation:

vi /volume1/@appstore/PHP7.4/misc/php-fpm.ini

/usr/syno/sbin/synoservice --restart pkgctl-PHP7.4


Change nginx setting for the nextcloud server

client_max_body_size 0

This will disable the checking of body size. The php settings rule.

cronjob

*/5 * * * * sudo -u http php74 -f /var/www/nextcloud/cron.php
Configure this

Client installation

sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt update
sudo apt install nextcloud-client

Troubleshooting

sudo -u http php74 /var/www/nextcloud/occ files:scan --all
Rescan all files (update database)
touch <file>
When everything looks OK, you fixed mounts and file permissions, try touch on the client.

A file is reported locked and it is not a file-protection issue

  1. put Nextcloud in maintenance mode: edit config/config.php and change this line:
'maintenance' => true,
  1. Empty table oc_file_locks (the default table prefix is oc_, this prefix can be different or even empty)
  2. disable maintenance mode (undo first step).
'maintenance' => false,