In CPanel, cron job is not being executing and not sending any mail

Posted by Abhishek on Super User See other posts from Super User or by Abhishek
Published on 2011-04-21T15:03:50Z Indexed on 2012/03/27 11:32 UTC
Read the original article Hit count: 267

Filed under:
|
|


though many of us has asked many question related to cron jobs, let me ask my one...

I want to execute a PHP script periodically. As a cron command I'm using:

php -q http://www.example.com/cron.php?action=getA

I also tried this one:

php -q /home/myuser/www.example.com/cron.php?action=getA

It is not getting executed and not sending any mail. I set the mail ID to my gMail ID. What am I doing wrong?

© Super User or respective owner

Related posts about gmail

Related posts about php