Ciao to all friends here. I already post a question some months ago and I had your supporto to resolve. Today same question after all check. I cant find solution. I have 2 server same kind, same debian, same ispconfig. The first one has cron job ok (see my post here http://www.howtoforge.com/forums/showthread.php?t=63829) - I reply all check in ispconfig, but no way to receive the mail every hour. I dont knwo what to do or check. here the not working cron job log: Code: tail /var/log/syslog Aug 8 21:16:29 rora postfix/smtpd[9145]: connect from localhost[127.0.0.1] Aug 8 21:16:29 rora postfix/smtpd[9145]: disconnect from localhost[127.0.0.1] Aug 8 21:16:29 rora pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1 Aug 8 21:16:29 rora pure-ftpd: ([email protected]) [INFO] Logout. Aug 8 21:17:01 rora /USR/SBIN/CRON[15977]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Aug 8 21:17:01 rora /USR/SBIN/CRON[15978]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done) Aug 8 21:17:29 rora postfix/smtpd[9145]: connect from localhost[127.0.0.1] Aug 8 21:17:29 rora postfix/smtpd[9145]: disconnect from localhost[127.0.0.1] Aug 8 21:17:29 rora pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1 Aug 8 21:17:29 rora pure-ftpd: ([email protected]) [INFO] Logout. here the script for cj php -q /var/www/clients/client1/web13/web/mail.php already check in ispconfig client1 limit -> full cron here the tail /var/log/ispconfig/cron.log Code: Fri Aug 8 10:00:24 CEST 2014 W: GPG error: http://ftp.cyconet.org wheezy-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 86A45401794C55C5 i already fix the pubkey...so now GPG error is ok help or sugget ?tia
Cronjobs must use the full path for all commands, so instead of: php -q /var/www/clients/client1/web13/web/mail.php use: /usr/bin/php -q /var/www/clients/client1/web13/web/mail.php But normally you should better use a URL cronjob if the file that has to be executed is a php script in the web flder. If your website is e.g. domain.tld, then enter just the URL to the script in the command field: http://domain.tld/mail.php
Till what I can say ? THX a lot. easy answer and result :OK !! when u will do a course of study on debian I will be there, tell me. for sure. thx again ciao PS. just for info. On the other 2 server the cron works without the full path /usr/bin/php