King Julien
King Julien

Reputation: 11338

Can't run php file from plesk scheduled tasks

I use this command to run php file from plesk scheduled tasks:

php -q httpdocs/cron.php

but is gives me an error:

php: command not found

I have linux/centos vps hosting and use exactly the same command on another hosting and it works fine.

Any ideas?

Upvotes: 1

Views: 3215

Answers (1)

Brian Fisher
Brian Fisher

Reputation: 23989

Try:

/usr/bin/php -q httpdocs/cron.php

Upvotes: 2

Related Questions