Monkey644 Posted December 25, 2009 Posted December 25, 2009 My cron jobs keep stopping after i get the server refreshed. They work for a bit then they stop, as if the Hour or Day crons are messed up... Can anyone help me? What do i need to do? :wacko: Quote
Eternal Posted December 26, 2009 Posted December 26, 2009 Eternal Please take note of the Cronjob Option in the cpanel/plesk Control panels Then on the install script and/or config.php would be your code. Please see to that the links 0 * * * curl http://www.yoursite.com/cron_day.php?code=CONFIG CODE HERE <-- is set to the according values. If this is correct i would contact your hosting provider and ask them to check it in more detail for you. Eternal Wrote This Post Quote
Nicholas Posted December 26, 2009 Posted December 26, 2009 also if your using the mccodes v2 crons find in cron_hour.php require "class/class_db_{$_CONFIG['driver']}.php"; and under it put require "global_func.php"; that will fix the cron_hour.php also for the crons in Minute, Hour, Day, Month, Weekday put them in this order. cron_minute.php = * * * * * cron_fivemins.php = */5 * * * * cron_hour.php = 0 * * * * cron_day.php = 0 0 * * * then in the command do what eternal said curl [url]http://www.yoursite.com/cron_day.php?code=CONFIG.PHP[/url] CODE HERE change the /cron_day.php when you add another cron. and change that * * * * * blah blah bit. Quote
bennybwoi Posted December 27, 2009 Posted December 27, 2009 you know on the command part, do you put CONFIG.PHP CODE / or / CONFIG.PHPCODE basically do u space it? Quote
Nicholas Posted December 28, 2009 Posted December 28, 2009 you know on the command part, do you put CONFIG.PHP CODE / or / CONFIG.PHPCODE basically do u space it? ok erm.... let me try and say it in a better way m8 :) in config.php file say it says... <?php $_CONFIG = array( 'hostname' => 'localhost', 'username' => 'blah_blah', 'password' => 'gangster', 'database' => 'blah_blah', 'persistent' => 0, 'driver' => 'mysql', 'code' => 'h372365g51cc8e9736657542fe771hn4' ); ?> the cron job cron setup be like this in the command slot. curl [url]http://www.yoursite.com/cron_day.php?code=h372365g51cc8e9736657542fe771hn4[/url] but change the yoursite.com into your games domain. Quote
bennybwoi Posted December 28, 2009 Posted December 28, 2009 ahh i had already done dat, looks like ive found the first paid host which doesnt have workin crons =/ lol Quote
Danny696 Posted December 28, 2009 Posted December 28, 2009 Why not add a suport ticket, they may set them up themselves Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.