The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Move 'Hourly Cleanup' Scheduled Tasks, to cpanel cronjob
Hi guys, i want to Move 'Hourly Cleanup' Scheduled Tasks, to cpanel cronjob, so cleaning more constant and stable from server side, not from if someone load the cron image in the footer template
i created cronjob in cpanel, but its looks like not working the command is Quote:
in the email notification, only get this Quote:
i already tried moving the cleanup.php file to the root (/home/username/public_html/cleanup.php) , but its looks like still not working please help how to Move that Scheduled Tasks, to cpanel cronjob, really need to do it |
#2
|
|||
|
|||
I don't think you can call the cron/cleanup.php directly, it assumes that some things have been done already (like the database connection created, etc). I haven't tried it, but I think if I were doing that I would probably try making the cron command something like:
Code:
curl www.mydomain.com/cron.php (assuming you have a linux server and the curl command is available, of course). Also of course you want to replace www.mydomain.com with the actual path to your forum. |
#3
|
||||
|
||||
In your cron files, try adding the following to the top:
PHP Code:
|
#4
|
|||
|
|||
Cool, does that work? I've never tried running vb scripts from the command line. ETA: Seems like it does.
|
#5
|
||||
|
||||
I haven't tried it with cron jobs, but I have a ton of development tools which I use all from the command line. As long as you include global.php then you're good to go.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|