Crontab -e setup - Install in sub-directory

Hi all,
I install matomo in a sub directory and got an error that my crontab is not setup the correctly

5 * * * * /usr/local/bin/php /home/nginx/domains/domain.com/ core:archive --url=https://domain.com/analytics/ >> /home/nginx/domains/domain.com/private/matomo-archive.log -e private@private.com

Execute

sh /home/nginx/domains/domain.com/public/analytics --matomo-domain=domain.com core:archive
/home/nginx/domains/domain.com/public/analytics: /home/nginx/domains/domain.com/public/analytics: is a directory

Guess this is one of the last errors to resolve and continue to use this great piece of analytics software

Hi,

I don’t exactly get your issue.

What happens when you run the PHP archive command manually? What appears in the matomo-archive.log file?

Why do you try to execute a directory with sh?

Guess I made a stupid mistake due the fact to hide the real domain before posting something in another forum and copied that into the cron.
Because of that my log shows

Could not open input file: /home/nginx/domains/domain.com/

Gona fix that and see what happens.