loader image
Nextcloud

More To Do With Nextcloud

1. Run OCC Command Globally.

Code Box Example

Whenever we have to recall the Nextcloud OCC Command, we use it via below command

sudo -u apache php /var/www/html/nextcloud/occ occ:app update

Now no more worries, we can make some adjustments to the server configuration which will allow to Run occ command from any directory or folder, like any other Linux Commands

Code Box with Copy Button

Method 1

nano ~/.bashrc
Code Copied
alias occ='sudo -u www-data php /path/to/nextcloud/occ'
Code Copied
source ~/.bashrc # or source ~/.zshrc
Code Copied

Method 2

sudo nano /usr/local/bin/occ
Code Copied
#!/bin/bash
sudo -u www-data php /path/to/nextcloud/occ "$@"
Code Copied
sudo chmod +x /usr/local/bin/occ
Code Copied
OCC Command

2. Use SAML/SSO App of Nextcloud

ChatGPT Image Jun 20, 2025, 11_04_32 AM
How to Use SAML/SSO or Single Sign On with Nextcloud and Auth0
SAML (Security Assertion Markup Language) is an open standard for exchanging authentication and authorization...

3. How to Setup Cron Job for cron.php file with System

Upcoming Post……………………………………………………………………….

4. How to Setup Mail server with Nextcloud

Upcoming Post……………………………………………………………………….

5. ......................Special Topic...........................................

Upcoming Post……………………………………………………………………….

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page