I'm running the last version of ISPConfig and all work great while I add a cron job using http:// prefix. My problem is when I try execute directly some PHP scripts as a cron job, I mean, without make a HTTP request to the Apache to avoid timeouts. When I add the cron job, ISPConfig create the file
/etc/cron.d/ispc_chrooted_web3 with the following content:
MAILTO='' SHELL='/usr/sbin/jk_chrootsh' * * * * * web3 /var/www/www.example.com/testing.php
I set the right permissions to the file
testing.php and even test it using
sudo -u web3 /var/www/www.example.com/testing.php and all work great. The testing.php file have
#!/usr/bin/php5 as first line.
Seem to me that the problem is related to the
SHELL='/usr/sbin/jk_chrootsh' part of the cron entry. I suppose that PHP interpreter is not available in *jk_chrootsh* shell, but I'm not sure, anyway I think that my next step must be add PHP interpreter to *jk_chrootsh*, but I don't know how. Any help?