Favorite Linux Debian Commans for Nextcloud
Posted: Mon Jun 02, 2025 10:11 pm
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:
- root file manager
- clearing the error log
- restarting Apache2
OCC Terminal Commands:
- repairing instance
- another version of repair
Various crontab Commands and configurations:
*/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:
I can get a successful connection, but doesn't quite get to the end. Hangs somewhere.
Linux Terminal Commands that have helped me manage my Nextcloud build:
Code: Select all
sudo pcmanfm
Code: Select all
sudo truncate /var/nextcloud/data/nextcloud.log --size 0
Code: Select all
sudo systemctl restart 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
Code: Select all
sudo -u www-data php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair
Various crontab Commands and configurations:
Code: Select all
sudo crontab -e
*/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