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 | Forum

Topic location: Forum home » Support » General Questions
Pedro
Pedro Aug 17 '10
cron job is not working.
why do I need this and is this strictly necessary?
It complains about files not found and file access not permitted.
Den Team
Den Aug 17 '10
Welcome to our camp Pedro!
Cronjob is necessary for sending emails, mass mailings, update profile online status, processing memberships and etc
How actually did you try to configure cron job and error did you find?

Thanks
Pedro
Pedro Aug 18 '10
this is the errpr message everytime it runs even I've set 755 on some files.

/home1/cvdpilot/public_html/cvdpilots/web/ow_cron/run.php: line 1: ?php: No such file or directory
/home1/cvdpilot/public_html/cvdpilots/web/ow_cron/run.php: line 3: /0: Permission denied
/home1/cvdpilot/public_html/cvdpilots/web/ow_cron/run.php: line 4: access-logs: command not found
/home1/cvdpilot/public_html/cvdpilots/web/ow_cron/run.php: line 5: syntax error near unexpected token `('
/home1/cvdpilot/public_html/cvdpilots/web/ow_cron/run.php: line 5: ` * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”);'
Pedro
Pedro Aug 18 '10
I've set it up with cpanel on bluehost
Den Team
Den Aug 19 '10
It seems that at the begining of file run.php was missing symbol < before ?php
Would you check it please?
Michael Leader
Michael Aug 20 '10
I had cron issues as well. Was showing first as file not found then permisison denied. I use a Hosting company, justhost.com
It turned out I had the wrong syntax but basically set a support call into my host. They had it sorted in a jiffy. (I was trying to do 1 minute jobs, they only allow 15min intervals)

In my cpanel the cron job shows up as
*/15 * * * * * /usr/bin/php -q /home/myacc/public_html/ow_cron/run.php
Den Team
Den Aug 20 '10
15 min interval is not good. In this case, your mass mailing, updating profile's online status, buying memberships and etc will work slow.
There are a lot of hosting companies, which are not allow cronjob every minutes, because saving resources. But we suggest you to choose hosting, which allow such setting.
Michael Leader
Michael Aug 23 '10
TY for that advice. will pass on to the beancounters ;o)
Bajak
Bajak Aug 26 '10
i still not understand
please tell me more

Den Team
Den Aug 27 '10
Hi Bajak!
What exactly?
carlos
carlos Sep 3 '10
??????????????????

Quote from Addenster


It seems that at the begining of file run.php was missing symbol < before ?php

Would you check it please?





How ??
Den Team
Den Sep 6 '10
@carlos
Open run.php via any text editor and check first line of this file. It must start from <?php
carlos
carlos Sep 8 '10
If so, even so I keep leaving this error
Carlos
Carlos Oct 1 '10
I'm getting this cron error, any advice

/home/****/public_html/relojdedios.com/ow_cron/run.php: line 1: lt?php: ambiguous redirect
/home/*****/public_html/relojdedios.com/ow_cron/run.php: line 3: /aquota.user: Permission denied
/home/****/public_html/relojdedios.com/ow_cron/run.php: line 4: access-logs: command not found
/home/*****/public_html/relojdedios.com/ow_cron/run.php: line 5: syntax error near unexpected token `('
/home/****/public_html/relojdedios.com/ow_cron/run.php: line 5: ` * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”);'
John Sanjee
John Sanjee Oct 1 '10
I dont get it properly... you want me to put the code on the first line of run.php right? or have i understood this wrong?

* * * * * php [public_html/www/tcunity/ow_cron/run.php

I havent done this yet... and i want to do it before i open the page for all other users.

Please help!

Thanks
Den Team
Den Oct 4 '10
@John Sanjee
What error do you actually have with your cron?
The Forum post is edited by Den Oct 4 '10
John Sanjee
John Sanjee Oct 4 '10
Addenster,

its working fine now. i just didnt understand where to put the
* * * * * php [public_html/www/tcunity/ow_cron/run.php

But when i put this on the first line of run.php the page works much faster.

Thanks for your reply
Den Team
Den Oct 14 '10
Quote from John Sanjee


its working fine now. i just didnt understand where to put the

* * * * * php public_html/www/tcunity/ow_cron/run.php





You need to put it in crontab via SSH directly or you can confgure cronjob via any site CPanel/Plesk. All you need to do is setup cronjob with command:

/path/to/php /path/to/oxwall/ow_cron/run.php

which must run every minute.
The Forum post is edited by Den Oct 14 '10
idea
idea Nov 3 '10
I am still having problem please help me to come out this situation..



Den Team
Den Nov 5 '10
You have incorrect started PHP tags on run.php file at the begining. Please check it.
The Forum post is edited by Den Nov 5 '10
Pages: 1 2 3 »