Jump to content
MakeWebGames

Recommended Posts

Posted

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:

Posted

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

Posted

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.

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...