Currently I am trying to get a cronjob working in Parallels Plesk Panel 10.2.0.
The script I want to run is on a subdomain.
I’ve tried a lot of options in the command line, but nothing is working.
Tried:
/usr/bin/php /home/httpd/vhosts/subdomain.domain.com/httpdocs/file.php
/usr/bin/wget -O - -q http://www.subdomain.domain.com/file.php
/usr/curl http://subdomain.domain.com/controller/action
/var/www/vhosts/subdomain.domain.com/httpdocs/file.php
php /var/www/vhosts/subdomain.domain.com/httpdocs/file.php
None of the above work. Also in the schedule task settings under Send notification messages from scheduler to e-mail address
I filled in my email address but I won’t get any emails.
Please help me, Thanks!
EDIT
My setting Access to the server over SSH
are set to Forbidden
I don’t know if this can be a reason
2
Answers
I have followed this tutorial which given me positive results for setting up a cron job in parallels plesk.
The sentence which worked for me is:
Dont forget to set the email address for cron jobs messages/alerts, in your hosting admin panel
Check the following url: Set up a Magento cron job in plesk
If you are using Parallels, the following SHH command is required to allow full access permissions as cron tasks run using a restricted access rights
And to revert the access permissions