How do i set the cron jobs

JosHost

Verified User
Joined
Mar 9, 2006
Messages
37
Location
israel
Hello,
i tried hours to get the cron job runing,
i have now installed the webmin interface and i tired all variations of paths,
1)/home/user/turns.php
2)/domains/sub.domains.com/public_html/turns.php


3)/usr/local/lib/php /home/user/domains/subdomain.domain.com/public_html/turns.php

/bin/sh: /usr/local/lib/php: is a directory < i get this line a lot after i am runing the cron in the webmin interface,

can some plz point me on how to make the cron job work with the correct path ?

Thank you
 
Use

Code:
/usr/local/bin/php /home/user/domains/subdomain.domain.com/public_html/turns.php

Insted of

Code:
/usr/local/lib/php /home/user/domains/subdomain.domain.com/public_html/turns.php
 
You should always use the DA control panel instead of Webmin when creating cronjobs. DA staff has posted previously that they don't support the use of Webmin with DA.

Jeff
 
Help with cron job please

I've tried every format I could find in this forum and still cannot get my cron job to execute. I've even tried to edit crontab and crond but nano says that it has converted the file from mac and all i see is gibberish.

This is what I am trying to do:
/usr/local/bin/get '/home/divine/divinelighting.com/public_html/googlefroogle.php?feed=fy_uy_tp'
I've also tried such things as:
/usr/local/bin/php -q home/divine/divinelighting.com/public_html/googlefroogle.php?feed=fy_uy_tp
and
/usr/local/bin/php /home/divine/divinelighting.com/public_html/googlefroogle.php?feed=fy_uy_tp
Among others. Any help is appreciated.
 
You cant add the "?feed=fy_uy_tp" part on the end. You will have to find another way to run it.
 
Seriously, I've been trying to get this cron job running for a year now. Any help is appreciated.
 
so just change feed= to an argument

/path/to/file.php <feed-stuff-here>
 
for cronjob in directadmin is 2 solution :

hello friends

for cronjob in directadmin is 2 solution :

solution 1 - wget http://www.mysite.com/example.php

----------

solution 2 - usr/local/bin/php -q /home/[usernameyoursite]/public_html/example.php


solution 2 is very good :-*

bye
 
Back
Top