<p>Things about environment:</p>
<ul>
<li>Headless server</li>
<li>Nextcloud On Fedora 38</li>
<li>Apache Web Server</li>
<li>Nextcloud runs as apache user</li>
<li>Nextcloud installed in alternate directory
<code>/data/nextcloud</code></li>
<li>Apps are being updated according to<br />
<a href="http://hackerpublicradio.org/eps.php?id=3297"
class="uri">http://hackerpublicradio.org/eps.php?id=3297</a><br />
Automatically Update Nextcloud Applications via Cron</li>
</ul>
<pre><code>root@homeserver ~]# crontab -l -u apache
MAILTO=NAME@domain.com
# m h d m w
# * * * * * command to be executed
# - - - - -
# | | | | |
# | | | | +----- day of week (0 - 6) (Sunday=0)
# | | | +------- month (1 - 12)
# | | +--------- day of month (1 - 31)
# | +----------- hour (0 - 23)
# +------------- min (0 - 59)
# m     h    dom mon dow command

#Nextcloud
#Cron Updates 
*/5 *   *   *   *   /usr/bin/php -f /data/nextcloud/cron.php &gt;/dev/null 2&gt;/dev/null
#App Updates
0   5   *   *   0   /usr/bin/php /data/nextcloud/occ app:update --all 2&gt;&amp;1
#Update Next Cloud
0   1   *   *   0   /usr/bin/php --define apc.enable_cli=1 /data/nextcloud/updater/updater.phar --no-interaction</code></pre>
