The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron job Problem - Status: 302 Moved Temporarily

Discussion in 'General Discussion' started by howzit, Aug 21, 2012.

  1. howzit

    howzit Member

    Joined:
    Feb 20, 2012
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Howzit! Free Advertising Classifieds
    cPanel Access Level:
    Website Owner
    Up and until a week ago Cron jobs worked fine on my server and I changed nothing...
    My Cron job command is for example: php /home/domain/optimise_table.php
    Every time this Cron job ran, it sent me a pre-defined email report...

    They stopped working and I only get an email report stating: Status: 302 Moved Temporarily

    I contacted my :mad: hots... They do not support Cron jobs and will not help and recon they did nothing???
    I read up on Google and changed one Cron job command to: /usr/bin/wget -q http://mydomain/next_cron.php

    This solved the problem sort of... The Cron job runs and do what it should but I get no email report...

    1.... Why would they stop working?
    2.... Do I have to do something else to get the Cron job email report?

    Thanks
     
    #1 howzit, Aug 21, 2012
    Last edited: Aug 22, 2012
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you have it set for the email address in cPanel > Cron jobs area? If you do and it still isn't sending an email, you probably have no choice but to contact your hosting provider again (or finding a new one who supports functions in your cPanel).
     
  3. PlotHost

    PlotHost Well-Known Member

    Joined:
    Apr 29, 2011
    Messages:
    253
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Twitter:
    Try to access the file domain.com/dbopt.php in your browser and check for errors.
     
  4. howzit

    howzit Member

    Joined:
    Feb 20, 2012
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Howzit! Free Advertising Classifieds
    cPanel Access Level:
    Website Owner
    No errors accessing it in the browser... Its runs without any hickups....
    To set up a Cron job is default selected to send email out to main email. No changes were made

    Might be good idea!!! Time is just not on my side to move the whole system at this stage...
     
    #4 howzit, Aug 22, 2012
    Last edited: Aug 22, 2012
Loading...

Share This Page