• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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