Crontab -e setup - Install in sub-directory

(Mike van Eckendonk) #1

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/ core:archive --url= >> /home/nginx/domains/ -e


sh /home/nginx/domains/ core:archive
/home/nginx/domains/ /home/nginx/domains/ is a directory

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

(Lukas Winkler) #2


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?

(Mike van Eckendonk) #3

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/

Gona fix that and see what happens.