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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...