Hi, I have an ISPConfig 3.2.9p1 on Deb11. When I create a cron job for a website, and flag "log output", the cron job created points logs to a "/private" absolute path that does not exist (instead of, I think, the /private subfolder that exists in website tree). cat /etc/cron.d/ispc_chrooted_web18 Code: MAILTO='' SHELL='/usr/sbin/jk_chrootsh' 13 */2 * * * web18 /usr/bin/php8.2 /webs/www/clients/client1/web18/web/console core:archive >>/private/cron.log 2>>/private/cron_error.log #mywebsite.com So script fails and I cannot get any log: what's wrong? thanks
The cron shell is chrooted, and in that jail there should be directory /private (which is the website private directory). Have you tried running that cronjob manually, log in as that web18 chrooted user, and copy paste the command. By the way this path Code: /usr/bin/php8.2 /webs/www/clients/ is wrong in chrooted shell.
Ok, sorry for newbie question. I was missing the chroot context. Also the php and the script path were wrong in that context. I loaded php8.2 in "Jailkit chroot app sections" and changed the cron as Code: /usr/bin/php8.2 /web/console core:archive >>/private/cron.log 2>>/private/cron_error.log #mywebsite.com making "su web18", then running the pasted command, resolves all paths and scripts seems working thanks