hi all, i'm really really newbie to linux, but I use very well google to seach. I setup a ispconf 3.0.5.3 + debian 7 on a pc by myself, find all solution to fix small trouble (attach in squirrel or no mailout in mail..fail2ban..etc) now i'm working to fix cron. but no lucky this time, so I decided to post it help: I fix mint.ini I check and I have the cron job in: /etc/cron.d Code: 12 * * * * web6 /usr/bin/php /var/www/clients/client3/web6/web/mail.php #domain.me if I write in ssh the string : Code: /usr/bin/php /var/www/clients/client3/web6/web/mail.php I recive mail. but cron dosnt work. it's a simple mail every hrs. so i check also /var/log/syslog/ and this is result: Code: /var/log/syslog Nov 11 18:11:01 bubaweb /USR/SBIN/CRON[5674]: (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) Nov 11 18:11:01 bubaweb pure-ftpd: (?@::1) [INFO] New connection from ::1 Nov 11 18:11:01 bubaweb pure-ftpd: (?@::1) [INFO] Logout. Nov 11 18:11:01 bubaweb postfix/smtpd[4125]: connect from localhost[::1] Nov 11 18:11:01 bubaweb postfix/smtpd[4125]: lost connection after CONNECT from localhost[::1] Nov 11 18:11:01 bubaweb postfix/smtpd[4125]: disconnect from localhost[::1] Nov 11 18:11:01 bubaweb dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<1Fb+0OnqXwAAAAAAAAAAAAAAAAAAAAAB> Nov 11 18:11:01 bubaweb dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<83L+0Onq7wAAAAAAAAAAAAAAAAAAAAAB> i think it's missing the sender...but not sure..any help and suggest ? Tia to all
I'm not sure about question, (i'm sure I didnt udnerstand) but I try I setup the cron job in the ispconfig tab -> sites and select in command-line left colum -> cron jobs. if question was another, please tell me how undestand :O thx foget: when I lanuch the sting in sheel, i receive mail and I see the html tag of page in sheel
MAILTO='' SHELL='/usr/sbin/jk_chrootsh' 00 14 * * * web6 /var/www/clients/client3/web6/php -q /var/www/clients/client3/web6/web/seo/cr on.php #xxx.it 45 * * * * web6 /var/www/clients/client3/web6/php -q /var/www/clients/client3/web6/web/mail.p hp #xxx.it 12 * * * * web6 /usr/bin/php /var/www/clients/client3/web6/web/mail.php #xxx.it
That's the reason why it doesn't work. The cron job is chrooted, so it has no access to anything OUTSIDE of /var/www/clients/client3/web6 You have to change the cron jobs to full (has to be set in client limits first) or you will have to install php in the chroot and use different paths in the job like: Code: /usr/bin/php -q /web/seo/cron.php Remember, this only works with php added to the jail.
hi Croydon really sad to say I didnt understand ...anything i understand that it works only inside /var/www/clients/client3/web6, but because there there is no php support, it dosnt work. If this is right, the next question is: i dont want to install php there, because if I add another cron for another customer (maybe client2/web1) i have to fix it again. So how change cron jobs to full? i want to use gui to setup cron.. Thx again for your time to help me
You have to grant full cron to them. Go to Client -> click on the client -> open the limits tab -> Go to cron section and select "full cron" instead of "chrooted" or "url" if the clients shall be able to use this cron type. After this you have to recreate the cron job. Check if the SHELL doesn't say jk_chroot anymore after this.
grandissimo !!! THX a lot, it works...i was going to search to do by ssh, and you help me , i forgot and maybe dosnt explore enought ispconf... really thx a lot, now i can also do backup ciao!!!