Jump to content
  • 0

Setting Cron > Plesk


Question

Posted

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 " 

post-10485-0-50855700-1419856322_thumb.p

 

Added In "Scheduled Tasks > root 

 

Any idea on how to make this work..?

 

Thanks In Advance.. 

4 answers to this question

Recommended Posts

  • 0
Posted

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"

  • 0
Posted
  On 12/29/2014 at 6:22 PM, Jonathan said:

crontab -e -u <username>

I have tried this over SSH ... keeps saying user unknown

 

  On 12/29/2014 at 1:46 PM, Licensecart said:

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...