user985867
user985867

Reputation:

CRON job not executing php -f

I'm trying to have a PHP script run once daily (at midnight, server time) in order to update a few files on my website with new data. Here is my cPanel:

enter image description here

I followed the exact perimeters specified in the example (0 0 * * * - will rune scripts every midnight), and I have the correct file path. Am I using php -f correctly?

Upvotes: 1

Views: 395

Answers (1)

Farkie
Farkie

Reputation: 3337

Try /usr/bin/php (or wherever php binary is installed)

Upvotes: 1

Related Questions