• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Scheduled Task not working, manually works

Cereal

New Pleskian
Hello,

I'm trying to set up Blesta and it requires running the following cron command:
*/5 * * * * /usr/bin/php /var/www/vhosts/domain/blestapath/index.php cron

So in Plesk, I have a Scheduled Task set up like this:
Screen_Shot_2015-08-21_at_9_14_12_AM.jpg
Screen_Shot_2015-08-21_at_9_13_46_AM.jpg

Is that the correct way to do it?

It's supposed to be every 5 minutes but according to Blesta, it has never run automatically. I could run it manually in Blesta, and also manually in SSH.

Any advice? Thanks in advance.

I'm using CentOS 7.
 
Thanks UFHH01. Let me rephrase my post then:

I'm trying to set up the following cron command in Plesk:
*/5 * * * * /usr/bin/php /var/www/vhosts/domain/path/index.php cron

Based on the screenshots in the original post, did I fill out the Scheduled Task form correctly? It's supposed to run every 5 minutes but it has never run automatically. I could however successfully run it manually.


Hi Cereal,

you might be interested in the following link: http://www.blesta.com/forums/index.php?/topic/4501-cron-jobs/

Please be aware that this forum is Plesk - related forum and Blesta is not part of Plesk.
 
Hi Cereal,

the setup is correct, but I have no idea, if the path is correct, nor do I know, if the cronjob was executed, because you didn't post depending log - entries from syslog, which could point to misconfigurations of the cronjob command. To investigate, if the command can be executed with the user you specified, please login with the user over ssh and execute the very same command over the command line. :)
 
Thank you. Okay, I now see that the Scheduled Task user is my hosting username. I do not get to choose a user when adding a scheduled task.

I'm able to execute the command over SSH if I'm logged in as root, but I can't log in by SSH with my subscription user.

Does this narrow down the issue? Is there some kind of configuration I'm supposed to do to my hosting user account?

Thanks.


Hi Cereal,

the setup is correct, but I have no idea, if the path is correct, nor do I know, if the cronjob was executed, because you didn't post depending log - entries from syslog, which could point to misconfigurations of the cronjob command. To investigate, if the command can be executed with the user you specified, please login with the user over ssh and execute the very same command over the command line. :)
 
Hi Cereal,

please go to example.com > Websites & Domains > FTP - Access and grant the desired shell access for the desired user over the settings options.

Please consider as well to read the Plesk 12 documentation, when you don't find settings or would like to learn more about Plesk features:


You will find as well a nice SEARCH option, on top left of the online documentation, which helps to find documented options/features.
 
Back
Top