We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

cron job bug | Forum

Topic location: Forum home » Support » General Questions
deep lover
deep lover Jan 17 '13
please fix this errors.

and tell me how to fix

cron work after 1 hour.

the members who left the site without signout. they will shows online for 1 hour. tell me how to fix it.

here is my cron job and error log attachments.

Attachments:
  cron job.jpg (80.44Kb)
  error logs.txt (22.29Kb)
ed claassen
ed claassen Jan 17 '13
by minute you have to do: */1
OW Developer
OW Developer Jan 17 '13
Send me a message and ill fix it for you.
FaceTester Leader
FaceTester Jan 17 '13
hi there,

have you test the cron with the PHP action ?
i see in your "cron job.jpg" that you use the WGET action.

When your Webspace provider have open the PHP-Engine it must be work with:
php /home/vudlcc/public_html/ow_cron/run.php
if not, please look in the Webspace Provider knowledge base for the right action of the PHP-Engine (maybe /usr/local/php or /usr/sbin/php)

i see in your errorlog.txt (the last lines) that the cron not find the run.php.
i see that "home/vudlcc/public_html/public_html/ow_cron/run.php" is a double folder and cant find the right file.

hope my english is understand
greets
FaceTest
deep lover
deep lover Jan 18 '13
tell me correct cron for my site accourding to my site. please

for info view my attachments. thanks

FaceTester Leader
FaceTester Jan 18 '13
ok.. the right cron-job line in your picture is the third line
wget -p -O /dev/null http://vudl-pk.tk/ow_cron/run.php
(the first and second line cant work)

Next step, try to confirm your cron-job to
2 * * * * wget -p -O /dev/null http://vudl-pk.tk/ow_cron/run.php
because it is possible the your cron-job engine dont understand the first * and do nothing.
The "2" is for two minutes, if this dosnt work make a higher time e.g. 5 minutes.
Many Webspace Provider dont like short cron-jobs times (must be see in the Webspace Provider knowledge base)

More Information here http://docs.oxwall.org/install:cron
There are Information for make cron-job to PHP action, that have more function at the oxwall system (read this for better understand as my english here ) and can resolve your problem, when your provider dont like loopback requests.

hope my english is a little bit to understand
greets
FaceT
The Forum post is edited by FaceTester Jan 18 '13
OW Developer
OW Developer Jan 18 '13
I fixed it for them.
FaceTester Leader
FaceTester Jan 18 '13
and with function is it resolved ?
The Forum post is edited by FaceTester Jan 18 '13
OW Developer
OW Developer Jan 18 '13
/usr/local/bin/php /home/vudlcc/public_html/ow_cron/run.php 
deep lover
deep lover Jan 19 '13
no... its not working.