How to schedule a task in Plesk for Linux?

Follow

Comments

2 comments

  • Avatar
    Mario

    Hi, I need to run this cron task: php -q /var/www/vhosts/domain/httpdocs/folder/cron.php >/dev/null 2>&1

    These are the literal instructions from the service provider:

     

    How do I enter this, as "Run as command" results in error:

     

    Also, what's the best user to select for the job?:

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Daria Gavrilova

    Hello @Mario,

    Thank you for your question.

    As I can see the issue was resolved in the scope of the ticket and it was suggested to run the script with any installed Plesk PHP:

    /opt/plesk/php/7.1/bin/php -q /var/www/vhosts/example.com/httpdocs/test_directory/cron.php 2>&1
    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request