Move to different www-dir but cron does not realize

(running latest Nextcloud on Debian12)

I migrated some months ago from Owncloud to Nextcloud.
I added a DNS entry for “” and configured config.php accordingly:

  'trusted_domains' => 
  array (
    0 => '',
    1 => 'owncloud',
    2 => '',
    3 => ''',
    4 => 'nextcloud'
  'overwrite.cli.url' => '',

Worked pretty fine, my users did not even notice any change when using the Owncloud Desktop Client.

Now I wanted to reflect this change in my local directory structure and renamend the local directory on my server from owncloud to nextcloud so it is now /srv/
I configured Apache, .htacces files and configs accordingly. Still works absolutely fine. But since then I am facing issues with my Nextcloud cron job. I am getting Emails to www-data:

From: root@my.domain (Cron Daemon)
To: www-data@my.domain
Subject: Cron <www-data@mail> /usr/bin/php -f /srv/
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/www>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=www-data>
Message-Id: <>
Date: Tue, 21 Nov 2023 09:45:02 +0100 (CET)

Could not open input file: /srv/

So the cron job still uses the previous name. Anyone having a clue where I can change this?



In the crontab of the user www-data:

crontab -u www-data -e

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.