Cron job issue

After installation, I am facing issue with cron job.

Earlier I have dolphin website, where 'crontab' file is present. Same file is copied and placed in exact folder and website name changed in file.

crontab file content

MAILTO=admin@website.com

* * * * * cd /var/www/vhosts/website.com/httpdocs/periodic; /usr/bin/php -q cron.php

Scheduled task was also implemented in the same way.

However, I am getting error

-: line 0: cd: /var/www/vhosts/website.com/httpdocs/periodic: No such file or directory
-: /opt/plesk/php/7.1/bin/php: No such file or directory

  • 655
  • More
Replies (4)
    • Hello Surya !

      Please specify this part "Same file is copied and placed in exact folder and website name changed in file. " - did you install UNA on other hosting? If so then those parts /var/www/vhosts/website.com/ and /usr/bin/php may be different there.

      • Earlier, I have dolphin website, where 'crontab' file is present. 

        Same file ("crontab'' file with above mentioned content) is copied and placed in exact folder (see image attached) and website name changed in file.

        Also, same server I am using for this 'una' based website.

        • Since, the cronjob step is confusing during una website installation. I did in the same way as it was in my dolphin site. Also, I tried changing php version to 5.6 and also I  scheduled task. I am getting the above error with .../php/5.6/bin...

          • I replied via messages. Could u please check LeonidS 

            Login or Join to comment.