Joseph H Posted December 29, 2014 Report Posted December 29, 2014 Hi, I have just installed and moved to Plesk 12. I have tried setting the cron but It does not run, the command I use is " /usr/bin/php /var/www/vhosts/yatosha.com/httpdocs/billing/index.php cron " Added In "Scheduled Tasks > root Any idea on how to make this work..? Thanks In Advance.. Quote
0 Joseph H Posted January 1, 2015 Author Report Posted January 1, 2015 I managed to get It working... thanks @knownhost & @Licensecart All I had to do was restart the server. The command bellow works perfectly, there was no need of specifying the path. "php /var/www/vhosts/mydomain.com/httpdocs/billing/index.php cron" Michael 1 Quote
0 Michael Posted December 29, 2014 Report Posted December 29, 2014 Try: env php -q /var/www/vhosts/yatosha.com/httpdocs/billing/index.php cron or: extension_dir /var/www/vhosts/yatosha.com/httpdocs/billing/index.php cron Get extension_dir from a phpinfo page. Joseph H 1 Quote
0 Jonathan Posted December 29, 2014 Report Posted December 29, 2014 crontab -e -u <username> Joseph H 1 Quote
0 Joseph H Posted December 29, 2014 Author Report Posted December 29, 2014 crontab -e -u <username> I have tried this over SSH ... keeps saying user unknown Try: env php -q /var/www/vhosts/yatosha.com/httpdocs/billing/index.php cron or: extension_dir /var/www/vhosts/yatosha.com/httpdocs/billing/index.php cron Get extension_dir from a phpinfo page. I have tried both but still did not work. The funny thing is I tried executing "/usr/bin/php -q /var/www/vhosts/yatosha.com/httpdocs/billing/index.php cron" from command and It worked fine. Plesk 12, Centos 6.5 Quote
Question
Joseph H
Hi, I have just installed and moved to Plesk 12. I have tried setting the cron but It does not run, the command I use is " /usr/bin/php /var/www/vhosts/yatosha.com/httpdocs/billing/index.php cron "
Added In "Scheduled Tasks > root
Any idea on how to make this work..?
Thanks In Advance..
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.