legrolls Posted April 13, 2009 Posted April 13, 2009 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? Quote
Magictallguy Posted April 13, 2009 Posted April 13, 2009 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 Quote
legrolls Posted April 13, 2009 Author Posted April 13, 2009 Re: How to find cron info? If you don't have Cpanel? Quote
Strats Posted April 13, 2009 Posted April 13, 2009 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. Quote
legrolls Posted April 13, 2009 Author Posted April 13, 2009 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? Quote
DELETE ME NOW! Posted April 13, 2009 Posted April 13, 2009 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 :) Quote
legrolls Posted April 13, 2009 Author Posted April 13, 2009 Re: How to find cron info? I did, but I don't want to reinstall it...but I guess that's the only way? Quote
Faz` Posted April 13, 2009 Posted April 13, 2009 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. Quote
legrolls Posted April 13, 2009 Author Posted April 13, 2009 Re: How to find cron info? Wow, I'm very stupid. I apologize. Thanks, everyone! Quote
Faz` Posted April 13, 2009 Posted April 13, 2009 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. Quote
legrolls Posted April 14, 2009 Author Posted April 14, 2009 Re: How to find cron info? No, you didn't. I'm just more of a HTML/Javascript kinda guy... 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.