1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Scheduled Task Errors

Discussion in 'Plesk 11.x for Linux' started by Saffii, Nov 4, 2012.

  1. Saffii

    Saffii New Pleskian

    Nov 4, 2012
    Likes Received:

    After 2 days of hair-pulling and scouring the web for answers, I am wondering if anyone could shed light on scheduled tasks created via plesk panel. I am a running a VPS with the following;

    OS: Ubuntu 10.04.4 LTS
    Panel version: 11.0.9
    php version: 5.3.2

    After contacting the hosting company, I was told the command needs to point to the file inside root directory rather than the server itself. So using phpinfo(); I found the correct path, however, I am still none the wiser to getting the tasks to run without errors.

    For example, when I use the command: /usr/bin/php /var/www/vhosts/mydomain.com/cronjobs/crondaily.php‏

    I get the following error;

    PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0

    Have tried numerous other commands including: /usr/bin/wget http://mydomain.com/cronjobs/crondaily.php

    and for this I get the following error;

    Cannot write to `crondaily.php' (Permission denied).

    My user the tasks run under is set up as admin and has the Create and manage scheduled tasks enabled. I read somewhere there is a bug and I would have to edit imap.ini. Is this correct? If so, where and how do I edit this? Or can anyone see where I am going wrong and give me a gentle push in the right direction.....before I lose all my hair!

    Many thanks in advance.