chavdave Posted June 2, 2012 Posted June 2, 2012 I have got mccodes redux and am using hosting24.com but the cron jobs wont work so does anyone no a good hosting site that runs working crons and supports mccodes redux ? Quote
Guest Posted June 2, 2012 Posted June 2, 2012 The crons don't work because you have most likely set them up wrong. Quote
chavdave Posted June 2, 2012 Author Posted June 2, 2012 I copied the cron jobs and added them to cron jobs in the cpanel but i keep getting error messages Quote
KyleMassacre Posted June 2, 2012 Posted June 2, 2012 (edited) How are you putting them in ecactly? And what errors are you getting? Edited June 2, 2012 by KyleMassacre Quote
chavdave Posted June 2, 2012 Author Posted June 2, 2012 (edited) How are you putting them in ecactly? And what errors are you getting? i am using time stamps at the moment but will add the cron jobs now and screen shot the error my host says i need to use this command php -f /home/YOUR_CPANEL_USERNAME/public_html/file.php so what do i need to add to the command? <br /> <b>Warning</b>: session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot regenerate session id - headers already sent in <b>/home/crimmewa/public_html/Global/globals_nonauth.php</b> on line <b>31</b><br /> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>406 Not Acceptable</title> </head><body> <h1>Not Acceptable</h1> <p>An appropriate representation of the requested resource /crons/cron_minute.php could not be found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html> Edited June 2, 2012 by chavdave Quote
skooda Posted June 2, 2012 Posted June 2, 2012 Ok do this lookin your files for a config.php and get the code This how your format should be in the cron job http://gamename.com/cron/cron_minute.php?code=(code thats in the config) Quote
lucky3809 Posted June 2, 2012 Posted June 2, 2012 i've used hosting24 they support cron jobs, you have them set incorrectly!! Quote
KyleMassacre Posted June 2, 2012 Posted June 2, 2012 I have never used that command and am not too sure about this host, ive tried using them and I cant even get a webpage to display php -f /home/YOUR_CPANEL_USERNAME/public_html/file.php php -f /home/YOUR_CPANEL_USERNAME/public_html/file.php im assuming you just follow the path they gave you And I believe you username is that wierd number they give you and file.php is the actual file like minute_cron.php or whatever its called And if you need a code just get it from your config.php and add after the .php?code=codeinconfig.php And to set them they should have settings to run the cron at different times so depending on what cron your setting up you choose that setting For example your day cron will be set up using the everyday setting Quote
chavdave Posted June 2, 2012 Author Posted June 2, 2012 (edited) i have done that and i am getting a email sayin No input file specified. Edited June 2, 2012 by chavdave Quote
KyleMassacre Posted June 2, 2012 Posted June 2, 2012 Have you tried 1freehosting? Theres looks pretty easy to set up Quote
KyleMassacre Posted June 2, 2012 Posted June 2, 2012 I did some searching around in the forums and google and the only thing I found is this thread in the archives here: http://makewebgames.io/archive/index.php/t-35743.html? Basically what the guy did was used: curl http://www.yourdomain.com/cron_minute.php?code=mygamecode >/dev/null 2>&1 The "mygamecode" again is the "code" in config.php. You just copy and paste it over the mygamecode and change yourdomain to whatever it really is. The >/dev/null 2>&1 I guess disables the email for that cron. Then just set up the times using the dropdown menus when you are adding the cron in your cron jobs area most places ive seen have the dropdowns Quote
chavdave Posted June 3, 2012 Author Posted June 3, 2012 (edited) I have moved host now and crons are working fine :) Edited June 3, 2012 by chavdave 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.