masterdon Posted February 5, 2012 Share Posted February 5, 2012 looking for help setting up my cron jobs, will pay for fast service, offer staff positions and direct you to a game you will LOVE Quote Link to comment Share on other sites More sharing options...
Djkanna Posted February 5, 2012 Share Posted February 5, 2012 Quote Link to comment Share on other sites More sharing options...
elitter Posted January 13, 2013 Share Posted January 13, 2013 Hello Im also looking for some help with cron jobs, i do not have cpanel, i am running a Ubuntu 12.04 lts server Mccodes v1 free i have saved the four files as showed in the installation i went into webmin and tried to do it that way but no success so i went it ssh crontab -e add all four into the file saved which loaded them into webmin when i select it. but when i try to run now command i get errors When trying to load the oneminute.php i get this error - Output from command php /var/www/mccodefree-master/upload/crons/cron_minute.php 989563b0dc385b665ad9d56c7ba26308 .. PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0 onehour.php i get this error- Output from command php /var/www/mccodefree-master/upload/crons/cron_hour.php 989563b0dc385b665ad9d56c7ba26308 .. PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> </body> </html> oneday.php -Output from command php /var/www/mccodefree-master/upload/crons/cron_day.php 989563b0dc385b665ad9d56c7ba26308 .. PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> </body> </html> and fivemin.php - Output from command /var/www/mccodefree-master/upload/crons/cron_fivemins.php .. /var/www/mccodefree-master/upload/crons/cron_fivemins.php: 1: /var/www/mccodefree-master/upload/crons/cron_fivemins.php: cannot open ?php: No such file /var/www/mccodefree-master/upload/crons/cron_fivemins.php: 2: /var/www/mccodefree-master/upload/crons/cron_fivemins.php: /bin: Permission denied /var/www/mccodefree-master/upload/crons/cron_fivemins.php: 3: /var/www/mccodefree-master/upload/crons/cron_fivemins.php: MCCodes: not found /var/www/mccodefree-master/upload/crons/cron_fivemins.php: 4: /var/www/mccodefree-master/upload/crons/cron_fivemins.php: crons/cron_fivemins.php: not found /var/www/mccodefree-master/upload/crons/cron_fivemins.php: 5: /var/www/mccodefree-master/upload/crons/cron_fivemins.php: Syntax error: word unexpected (expectin I have reviewed the php files and gone over the cron multiple times and im missing something thanks Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted January 13, 2013 Share Posted January 13, 2013 Try this /var/www/mccodefree-master/upload/crons/cron_minute.php?code=989563b0dc385b665ad9d56c7ba26308 Now will you please go to your config.php and change the code to something else otherwise someone that thinks they are funny can just sit there and run your crons all day long. And be sure to update your cron job with the correct code Quote Link to comment Share on other sites More sharing options...
elitter Posted January 13, 2013 Share Posted January 13, 2013 (edited) Try this /var/www/mccodefree-master/upload/crons/cron_minute.php?code=989563b0dc385b665ad9d56c7ba26308 Now will you please go to your config.php and change the code to something else otherwise someone that thinks they are funny can just sit there and run your crons all day long. And be sure to update your cron job with the correct code i replaced the code and still got this error.. i dont quite understand why im getting this when the file is there Output from command /var/www/mccodefree-master/upload/crons/cron_minute.php?code=989563b0dc385b665ad9d56c7ba26 308 .. /bin/sh: 1: /var/www/mccodefree-master/upload/crons/cron_minute.php?code=989563b0dc385b665ad9d56c7ba26: not found and there is no config.php file Edited January 13, 2013 by elitter Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted January 13, 2013 Share Posted January 13, 2013 (edited) config does not come with lite I think it's called mysql.php.... anyways use this method, if you can't get them to run.... http://makewebgames.io/showthread.php/42581-Removing-Cron-Jobs?highlight=crons if the file is not found, that is the error your getting... your path to that file is wrong! Edited January 13, 2013 by lucky3809 Quote Link to comment Share on other sites More sharing options...
elitter Posted January 13, 2013 Share Posted January 13, 2013 hmmmm... well for 2 im getting file not found.. which makes no since what so ever i have added each folder to the file excatly so i must be doing something wrong.. could be a lack of sleep or what lol.. but it is the complete path to the file and even if i check properties of the file it shows the path in my errors up top. and as for the deprecatied other errors make no since i dont see any errors which would be causing that and i checked the mysql.php file and all info is correct.. i know this is a silly or stupid mistake on my part lol i wish i could just figure this out. ive been working on it since saturday night trying to get it resolved.. thanks Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted January 13, 2013 Share Posted January 13, 2013 Easy enough, follow what PHP tells you: # comments are old style and should be replaced with // Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted January 13, 2013 Share Posted January 13, 2013 (edited) Try this... wget -O/dev/null http://YOURSITE/cron_minute.php?code=YOURCODE Edited January 13, 2013 by lucky3809 Quote Link to comment Share on other sites More sharing options...
elitter Posted January 13, 2013 Share Posted January 13, 2013 i would like to thank everyone for there help in this, i made all the needed changes, the wget command was the part i was leavining out of the command line.. thanks Quote Link to comment Share on other sites More sharing options...
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.