Why is my cron task working in command line, but not in PLESK?

Asked
Active3 hr before
Viewed126 times

2 Answers

working
90%

Meta Stack Overflow , Stack Overflow help chat ,Thanks for contributing an answer to Stack Overflow!, Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers

You should replace:

usr / bin / php - q /
   var / pathtocronjob

with

/usr/bin / php - q /
   var / pathtocronjob
load more v
88%

If you trust your customers enough to allow execution of scripts in a non-chrooted environment, then you can select the required shell by issuing the following command in the console:, Solutions Developers Content Managers Agencies IT Admins Infrastructure Providers Shared hosters VPS and Dedicated Hosters Hyperscalers , Open the Plesk feed on Twitter , Archived versions

# / usr / local / psa / bin / server_pref - u - crontab - secure - shell "/bin/sh"
load more v

Other "working-undefined" queries related to "Why is my cron task working in command line, but not in PLESK?"