Some more settings

Set up cronjob for Nextcloud

Before you can change the cronjob with the terminal, select "cron"

#For Nextcloud to run smoothly, you will want to set up a cronjob
sudo crontab -u www-data -e

#If asked, press “1” to use the nano editor (which is super easy to use)
#Add the following line to your crontab file
*/5  *  *  *  * php -f /var/www/nextcloud/cron.php

Move Nextcloud data directory (useful if you have a second hdd / ssd)

WARNING: Make sure that the "data" folder in the target directory does not yet exists!

#Switch the default data-directory to the new mountpoint data-directory
sudo cp -a /var/www/nextcloud/data/. /mnt/cloud/data/

#Switch the following directory to change the value of "datadirectory" 
cd /var/www/nextcloud/config

#Edit the config.php file 
sudo nano config.php
#File: config.php
'datadirectory' => '/mnt/cloud/data',

Open "files" when user logged in

#Switch the following directory to set the value for "defaultapp" 
cd /var/www/nextcloud/config

#Edit the config.php file 
sudo nano config.php

#File: config.php / if files not exists it switches over to photos ans so on
'defaultapp' => 'files,photos,calendar',
#After that restart the service apache2 
sudo service apache2 restart 

Install OnlyOffice

  • Click on your user image

  • Click on Apps

  • Select Office & Text from the left menu

  • Download and enable the Community Document Server (Picture 1)

  • Download and enable ONLYOFFICE (Picture 2)

  • Click on your user image and go to settings

  • Make sure to update your Document Editing Service address (Picture 3)

Last updated