Jump to content
MakeWebGames

Recommended Posts

Posted

I know it was there when you installed it, but I clicked Ok without looking at it, and now my jobs, and school courses don't work daywise, as well as any php scripts that use crons.

How can I find the info again?

Posted

Re: How to find cron info?

In your config.php, you will find the cron code.

Presuming you use cPanel;

Go to your cPanel, go to Cron Jobs, click on "Advanced".

Enter these in

0 0 * * * curl http://www.your-domain.com/cron_day.php ... config.php

0 * * * * curl http://www.your-domain.com/cron_hour.ph ... config.php

* */5 * * * curl http://www.your-domain.com/cron_fivemin ... config.php

* * * * * curl http://www.your-domain.com/cron_minute. ... config.php

Posted

Re: How to find cron info?

* Copy the 4 cron lines given to you into a file. Save this file as crons.txt.

* Login to your shell access account.

* Run the command: crontab -l. This will give you a list of crons currently on your account. You will need to copy these into crons.txt, making sure you have a new line for each cron.

* Upload crons.txt onto your server, making sure you know the server path to it (if you do not, you can ask your host).

* Go back to your shell access account and run this command: crontab /path/to/crons.txt, replacing /path/to/crons.txt with the server path of crons.txt, which you should have established last step.

* If everything goes to plan, you should now have working crons.

Posted

Re: How to find cron info?

 

* Copy the 4 cron lines given to you into a file. Save this file as crons.txt.

* Login to your shell access account.

* Run the command: crontab -l. This will give you a list of crons currently on your account. You will need to copy these into crons.txt, making sure you have a new line for each cron.

* Upload crons.txt onto your server, making sure you know the server path to it (if you do not, you can ask your host).

* Go back to your shell access account and run this command: crontab /path/to/crons.txt, replacing /path/to/crons.txt with the server path of crons.txt, which you should have established last step.

* If everything goes to plan, you should now have working crons.

How do I find the line codes given to me in the beginning?

Posted

Re: How to find cron info?

 

I know it was there when you installed it, but I clicked Ok without looking at it, and now my jobs, and school courses don't work daywise, as well as any php scripts that use crons.

How can I find the info again?

If you brought your copy of mc codes it would show you on installer.php on the last step :)

Posted

Re: How to find cron info?

No, as Magictallguy explained, open up config.php. The cron code will be in there. Follow the steps he gave you. He couldn't have explained it better.

When you install the game it clearly says "Keep these crons safe" or something.

Posted

Re: How to find cron info?

 

Wow, I'm very stupid. I apologize. Thanks, everyone!

I didn't mean to sound like an idiot, if that's the way I came across. Sorry if I did offend you in any way.

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