Favorite Linux Debian Commans for Nextcloud

Tips and Troubleshooting
Post Reply
User avatar
rnispir
Site Admin
Posts: 9
Joined: Sat May 31, 2025 9:48 pm
Location: Elk Grove, CA
Contact:

Favorite Linux Debian Commans for Nextcloud

Post by rnispir »

Here are my favorite Debian commands I use for Nextcloud on my Raspberry Pi 5. You can give some of these a try.

Linux Terminal Commands that have helped me manage my Nextcloud build:

Code: Select all

sudo pcmanfm
- root file manager

Code: Select all

sudo truncate /var/nextcloud/data/nextcloud.log --size 0
- clearing the error log

Code: Select all

sudo systemctl restart apache2
- restarting Apache2

OCC Terminal Commands:

Code: Select all

sudo -u www-data php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair --include-expensive
- repairing instance

Code: Select all

sudo -u www-data php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair
- another version of repair

Various crontab Commands and configurations:

Code: Select all

sudo crontab -e
*/5 * * * * php8.3 -f /config/www/nextcloud/cron.php
*/5 * * * * php8.3 -f /var/www/nextcloud/cron.php --define apc.enable_cli=1
*/5 * * * * php8.3 -f /config/www/nextcloud/cron.php --define apc.enable_cli=1
*/5 * * * * sudo php8.3 -f /var/www/nextcloud/cron.php

For Nextcloud Talk Coturn. I am still working this one out, but here is what I have saved so far:

Code: Select all

sudo nano /etc/turnserver.conf

Code: Select all

turnserver --no-stun -a -n -r www.example.com

Code: Select all

sudo systemctl kill coturn

Code: Select all

sudo turnserver -c /etc/turnserver.conf

Code: Select all

sudo systemctl restart coturn

Code: Select all

sudo systemctl status coturn.service
I can get a successful connection, but doesn't quite get to the end. Hangs somewhere.
Rolando Nispiros
Rnispir Admin
Post Reply