Results 1 to 4 of 4

Thread: Cron job Problem - Status: 302 Moved Temporarily

  1. #1
    Member
    Join Date
    Feb 2012
    Location
    Howzit! Free Advertising Classifieds
    Posts
    22
    cPanel/WHM Access Level

    Website Owner

    Default Cron job Problem - Status: 302 Moved Temporarily

    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 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
    Last edited by howzit; 08-22-2012 at 07:41 AM.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Cron job Problem - Status: 302 Moved Temporarily

    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).
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Apr 2011
    Location
    US
    Posts
    210
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Cron job Problem - Status: 302 Moved Temporarily

    Try to access the file domain.com/dbopt.php in your browser and check for errors.
    www.PlotHost.com - Professional Web Hosting Solutions - Shared & Reseller Plans

  4. #4
    Member
    Join Date
    Feb 2012
    Location
    Howzit! Free Advertising Classifieds
    Posts
    22
    cPanel/WHM Access Level

    Website Owner

    Default Re: Cron job Problem - Status: 302 Moved Temporarily

    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

    (or finding a new one who supports functions in your cPanel).
    Might be good idea!!! Time is just not on my side to move the whole system at this stage...
    Last edited by howzit; 08-22-2012 at 08:25 AM.

Similar Threads

  1. Need Help with my Cron Job Script [moved]
    By psquillace in forum Data Protection
    Replies: 5
    Last Post: 08-22-2006, 12:32 PM
  2. cron job, help [moved]
    By tabuladze in forum New User Questions
    Replies: 4
    Last Post: 06-15-2006, 08:03 PM
  3. HTTP/1.1 302 Moved Temporarily
    By ktkjr8 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 12-12-2005, 11:12 AM
  4. Daily Cron job [moved]
    By Justin182004 in forum Data Protection
    Replies: 1
    Last Post: 09-24-2005, 05:14 PM
  5. Cron job help? [moved]
    By Katrina M. in forum New User Questions
    Replies: 2
    Last Post: 09-09-2005, 07:30 AM