Cron Job PHP

max246

Verified User
Joined
Jan 25, 2007
Messages
10
Hi,
I have a problem with the insertion of the cron job php.

When I insert the path “PHP path/filephp” give error to me.
How I make to add mine cron job?
 
What error?

You should use:
Code:
/usr/local/bin/php /home/user/domains/domain.com/public_html/php_file.php
 
i create this command

Code:
/usr/local/bin/php /home/esounds/domains/esounds.org/public_html/qlcat/_robot/robot.php

but it isn't work ? Could you tell me what is wrong in this line, because i looking for error many times and it still doesnt work
 
Cron Job Command

Having real problems with setting up cron job for the following

/usr/bin/php/home/XXXXXXXXX.com/public_html/linkcheckcron/linkcheck_cron.php >/dev/null

It is supposed to be run weekly but I have been testing it every 10 mins for eternity using different configs but nothing seems to get it to execute.

when I go to the create new cronjob panel this is already in the command field ( with xxx being my user name ) /home/xxxxxxx/
do I leave this in ( tried it ) change home to something else or what I really am at my wits end

anyone out there with any solutions


Thanks in advance as Im sure someone is going to tell me Ive wasted all these hours and the solution is simple.

TA!!!!!
 
1. did u try running this script from the browser just to make sure it is working?

http://xxxx.com/linkcheckcron/linkcheck_cron.php

2. on command line typewhich php" to find out the exact path to PHP
2.1 pathtopphp pathhtofile - rum from command line

3. /usr/bin/php/home/XXXXXXXXX.com/public_html/linkcheckcron/linkcheck_cron.php >/dev/null - I hope u had a space after php /usr/bin/php [SPACE]

Hope this might help.
 
Cron Job Command

Thanks Rohit

Have tried those suggestions and nothing I think I had best start from scratch again and do some more reading on this cause I seem to know less now than 24 hrs ago.

I ran from my browser and it loaded but only showed blank page and I received no email so I take it that it did not work?

On the other suggestions I have no Idea what to do I have tried typing into the command field and running cron every minute but nothing and I did have the space after php as you pointed out but believe me I have attempted all permutations.

In the mean time if you have any further thoughts on it feel free to pass them on. You know what they say ' a little knowledge is dangerous' well it seems to be the case for me with this:confused:

thanks again

nellygb
 
Last edited:
Back
Top