Cron Job doesn't run php script (command not found)

soulstor

New Member
Messages
1
Reaction score
0
Points
0
Hi all, I set a cron job with:
Code:
php-cron -q /home/soulstor/public_html/cronjob.php
it'd fire every 6 minutes but doesn't work, mail log reports this error:
Code:
/bin/sh: php-cron: command not found
What's the right command to run a script? Thanks everyone in advance ;)
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
/usr/bin/php -q  /home/soulstor/public_html/cronjob.php

should work.
 
Top