Cronjob to PHP5?

ayok

New member
Joined
Jun 23, 2012
Messages
4
Hi,
I'm new to directadmin and linux.
Recently I set up a cronjob to run my script with php5 functions inside. I've set up the file path like this
Code:
/usr/local/bin/php -q -f /home/beterdeals/domains/beterdeals.nl/public_html/cron_jobs/deals_cron.php
It works. However, it uses php4 and couldn't find any php5 function. I've tried to change the path to /usr/local/php5/bin/php but then it doesn't work anymore.

Could anyone tell me how to fix it?

Thanks,
ayok
 
I've tried to change the path to /usr/local/php5/bin/php but then it doesn't work anymore.


What error do you get?
What if you run as the following:

Code:
cd /home/beterdeals/domains/beterdeals.nl/public_html/cron_jobs/ && /usr/local/php5/bin/php -q -f ./deals_cron.php
 
What error do you get?

I got no php error and the file is not executed. I don't know where I can see the error from cron job.

What if you run as the following:

Code:
cd /home/beterdeals/domains/beterdeals.nl/public_html/cron_jobs/ && /usr/local/php5/bin/php -q -f ./deals_cron.php

Just paste whole line? still doesn't work.
 
Back
Top