my uh, Cron thing I think is at 60 min intervals. Idk if that is correct or not but that's what I'm getting from the .php file. I am on a free server so I can see why.
my uh, Cron thing I think is at 60 min intervals. Idk if that is correct or not but that's what I'm getting from the .php file. I am on a free server so I can see why.
Where 'igor' is replaced by your cPanel username and you adjust the path for both the script to run and the log file. This way any errors or output from your script will be logged.Code:/usr/bin/php /home/igor/public_html/cron_job.php >>/home/igor/public_html/log.txt 2>&1
The time part would be
which will run it at :00 every hour.Code:0 * * * *
Nothing is always absolutely so.
Ok I'm sure I can probably figure that out. The oxwall forum and this one has been really cool. I still feel like a nubcake.
I get back to you if I feel real stupid
Before I start to do that (stupid thing), yeah I'm on the free server right now so shouldn't I wait till I go to premium in a couple days so I don't run the free server into the ground or does it not matter quite so much?
So if I get this straight it would run every sec.? gnarly cool.
thx man
Hello,
No, that cron would run every hour, on the hour.
You'd be alright on free with that, you'll only get suspended for High Resource Usage if there's an issue. If that happens, you should be able to unsuspend yourself in the account panel, or open a ticket and someone will unsuspend you.
Well I tried trying, lol to figure it out but I'm not very sure where it is located at specifically. I'm sure I'd have to make the log.txt file probably blank. I kinda get that part but every cron.php file I look at on the server in/public_html and it doesn't have any of these areas at least not to my knowledge.
So I could get away with running it on 1 hr on free but the forums for oxwall said something I believe about 1 min (I'm not sure, been drinkin' but I do recall something about 1min) but would that be cool on premium.
I'm kinda a nub so if you want me to post the root of my server and then you can probably give me some hints on where to go.
---------- Post added at 10:43 PM ---------- Previous post was at 08:01 PM ----------
I believe I figured it out I just punch the coordinates you guys gave me into the cron jobs on cpanel but with my info and all the green checks lit up. So I figured I did it right, right? It does seem to be running a little smoother than usual.
Again and again thx for your help.
So this is what I got. I got the /null part from the Oxwall forum. and I set the timer to one hour but it isn't really working I think. Because some people are logged in and they aren't even on. My friend came over and I showed him and he said that that was wierd because his computer was off.Code:/usr/bin/php /home/desiredl/public_html/cron_job.php >>/home/desiredl/public_html/log.txt /null 2>&1
So I'm kinda sure I messed up somewhere, the bad part is there aren't a lot of tuts on this especially Oxwall. Which is kind of a bummer.
This is what happened in the log.txt file.
Status: 404 Not Found
X-Powered-By: PHP/5.2.14
Content-type: text/html
No input file specified.
Status: 404 Not Found
X-Powered-By: PHP/5.2.14
Content-type: text/html
No input file specified.
Status: 404 Not Found
X-Powered-By: PHP/5.2.14
Content-type: text/html
No input file specified.
Status: 404 Not Found
X-Powered-By: PHP/5.2.14
Content-type: text/html
No input file specified.
Status: 404 Not Found
X-Powered-By: PHP/5.2.14
Content-type: text/html
No input file specified.
Last edited by leetmunkyking54; 05-02-2011 at 10:21 PM. Reason: editing
You have the script named cron_job.php located in your public_html directory?
Nothing is always absolutely so.
Oh... lol my bad. I didn't know the file structure. duh. let me try and fix that.
Code:/usr/bin/php /home/desiredl/public_html/ow_system_plugins/base/bol/cron_job.php >>/home/desiredl/public_html/log.txt /null 2>&1Code:0 * * * *Code:/usr/bin/php /home/desiredl/public_html/ow_plugins/notifications/bol/cron_job.php >>/home/desiredl/public_html/log.txt /null 2>&1I believe that should be alright unless somehow you make them into one cron jobCode:0 * * * *
I jsut got my $ so I was wondering do I just sign up with the same info as i have now for premium or yeah how would that work?
Last edited by leetmunkyking54; 05-03-2011 at 03:33 AM. Reason: editing