Hi,
I have a php script that is meant to run by cron to update a database, if I call the script in a browser it works fine.
I have found the path to php
[root@mars root]# which php
/usr/local/bin/php
I have tried the following without any success, any ideas why it i not working ?
/usr/local/bin/php -q -f /home/user/domains/domain.com/public_html/usrlib/cron/browse.php
/usr/local/bin/php -q /home/user/domains/domain.com/public_html/usrlib/cron/browse.php
/usr/local/bin/php /home/user/domains/domain.com/public_html/usrlib/cron/browse.php
I have a php script that is meant to run by cron to update a database, if I call the script in a browser it works fine.
I have found the path to php
[root@mars root]# which php
/usr/local/bin/php
I have tried the following without any success, any ideas why it i not working ?
/usr/local/bin/php -q -f /home/user/domains/domain.com/public_html/usrlib/cron/browse.php
/usr/local/bin/php -q /home/user/domains/domain.com/public_html/usrlib/cron/browse.php
/usr/local/bin/php /home/user/domains/domain.com/public_html/usrlib/cron/browse.php