I have an Ubuntu 24.04.2 LTS server with ISPConfig Version: 3.3.0p1. I'm trying to run the following cron command from the ISPConfig Cron Jobs menu but it won't work. Code: /usr/bin/php-cgi7.0 -q /var/www/clients/client1/web1/web/hosting/crons/cron.php However, if I manually add it to the crontab via ssh (crontab -e command) it does work. Why is that? How can I fix the ISPConfig Cron Jobs menu?
You likely created a jailed cronjob, which means the command must be: /usr/bin/php-cgi7.0 -q /web/hosting/crons/cron.php and /usr/bin/php-cgi7.0 must be installed in that jail. Alternatively, create a non-jailed cronjob. But the best and safest solution is to use a URL cronjob, which means you just up the http(s) URL to that file in the cron command field.