Hi guys, I followed the "The Perfect Server – CentOS 7 (Apache2, Dovecot, ISPConfig 3)" and everything is working just great. The only problem I'm facing right now is making a cron work. I'm testing with a simple PHP script that writes to a TXT file, both in the web folder of a test site. I tried taking crons off from jailkit in ISPConfig (as suggested here in anther post) by putting a limit of 50 jobs limit and FULL cron in that user limits. I'm trying to run the cron in 3 ways: * * * * * /var/www/domain.ltd/web/cron-test.php &> /dev/null (in ISPConfig's sites) * * * * * http://domain.ltd/cron-test.php (in ISPConfig's sites) * * * * * /var/www/domain.ltd/web/cron-test.php &> /dev/null (in crontab -e) What can be the problem? Thanks in advance!
Hi till. There's no config file in there. Just system cron jobs: Code: [root@server1 cron.d]# ls -la total 40 drwxr-xr-x. 2 root root 4096 Mar 12 09:59 . drwxr-xr-x. 103 root root 8192 Mar 12 09:59 .. -rw-r--r--. 1 root root 128 Jun 9 2014 0hourly -rw------- 1 root root 203 Jan 29 18:30 clamav-update -rw-r--r-- 1 root root 246 Mar 1 07:12 ispc_web1 -rw-r--r-- 1 root root 2481 Mar 9 01:59 mailman -rw-r--r-- 1 root root 459 Jun 10 2014 sa-update -rw-r--r-- 1 root root 235 Jun 9 2014 sysstat
Code: MAILTO='' SHELL='/bin/sh' * * * * * web1 /var/www/domain.ltd/web/cron-test.php &> /dev/null #domain.ltd * * * * * web1 /usr/bin/wget -q -t 1 -T 7200 -O /dev/null 'http://domain.ltd/cron-test.php &> /dev/null' >/dev/null 2>&1 #domain.ltd
The first cronjob is prpbay wrong as the php interpreter is missing. I guess the command should be: /usr/bin/php /var/www/domain.ltd/web/cron-test.php that you enter in ispconfig. The second command should be ok.