Reputation: 2943
As a customer in Plesk, I am attempting to run:
php -q /httpdocs/_external/export/test.php
From this tutorial: http://daipratt.co.uk/crontab-plesk-php/
I'm receiving the error
"php: command not found"
Is there something I need to enable from the main user or a different command I would need to use to run the script?
(also tried /bin/php with no luck, there is no php file in that dir)
"which php" -/usr/bin/php (when I use this dir I also get "no such file or dir" I guess since when I use / it's pulling from the customers root not the server root)
Upvotes: 1
Views: 4551
Reputation: 779
This answer will help you. My understanding is that Cron runs everything relative to itself, so you should always use absolute paths when running something from Cron.
Good luck, and happy holidays!
Upvotes: 1