FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to run a cron job on a server





abhinav_shah
I want to create a reminder service on my web-site.
Can anybody tell me how to run a cron job on the server ?
modak
Log-in to cPanel. There is a link for setting up cron jobs under the Advanced header in the cPanel main menu.

cPanel lets you setup cron jobs using a easy to use interface. Or if you are a *nix geek, you can also hand edit the cronjob.
n0obie4life
He won't be getting cpanel.

It's directadmin. You have to tell the admin to enable it.
budazz
direct admin... has a wrong name,,, it should be "tell to admin before you go direct"...

or

"direct to your admin"

lol Very Happy Boo hoo!
mattd8752
Cron Jobs are disabled in the frih server 2. I don't know why, but you should be able to make the reminder as soon as someone visits the page after the time limit, with php.
thnn
I have cronjobs enabled on Frihost server 2. I posted a request to have them enabled in the account changes forum. Then they are under Advanced tools in DirectAdmin. For a php script I believe you need to pass the script to php so something like
Code:
/usr/bin/php -q /home/directadminusername/path/to/phpscript.php
n0obie4life
Okay.

Cron jobs are enabled for accounts under Bondings. For the other admins, no, they aren't enabled.

If you want Cron Jobs enabled and you aren't under Bondings, contact the administrator that made your account.

And don't ask why cron jobs aren't enabled for accounts that are not under Bondings.
Prabhu Raj
what does the account under the bondings and account not in the bondings mean?
modak
Prabhu Raj wrote:
what does the account under the bondings and account not in the bondings mean?


Bondings is the originator and "Benevolent Dictator for life" of Frihost. Account under Bondings means that Bondings created your account, which I believe is a priviledge.

There are other admins who have the right to create users. Like for example Maka created my account. (Thanks a lot Maka)
Related topics
Cron Job to Backup MySQL Database
cron job
Script to automatically restart Apache (for server 1)
Cron job
what can a cron job do for you?
Cron job and browser output question
Cron job
ΏCron Job en Frihost?
Cron jobs (Server 2)
How to get a php script working under a cron job?
Run a php Script with a Cron Job
Can I run a Mail server on FriHost
Possible cron job usage?
Cron Job usage on FriHost
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.