Scheduled Task (Cron Job) - Plesk 11, UnlimitedWebHosting

Posted on 2013-06-10
Medium Priority
Last Modified: 2013-06-11
Hi guys,

I'm using UnlimtedWebHosting for a site and trying to set up a scheduled task to run a PHP script.

After a few weeks of messing around with their support team, we've finally managed to get the command right to run a PHP script, which is as follows:

/usr/bin/php -q /var/www/vhosts/(sitename)/httpdocs/Code/testmail.php

Now, this works correctly if it's set by someone at their end, but if I try to make a change (or even open and close the job through Plesk), it breaks and the php page isn't called. Instead I get the following error:

-: /usr/bin/php: No such file or directory

If someone from the hosts support team go it and set it again, it starts working with the same command.

I've logged onto the Plesk Control Desk with an account that has all of the permissions set that I can give it, but still no luck. Whenever I set the job myself, it fails. Whenever they set it, it works.

UnlimitedWebHosting's support team don't seem to know what the issue is, and I don't have access to SSH.

Any ideas?
Question by:gesmuk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Expert Comment

by:Milind Koyande
ID: 39234165
Is it possible to see the screenshot of the plesk schedule task screen?

Author Comment

ID: 39234172
Sure, here you go.

Although, as I say, this works fine if it is set by the guys at the host, but not when I set it, so I know that the command is correct.


Accepted Solution

Milind Koyande earned 1500 total points
ID: 39234178
Thanks for the Screenshot.

Please check following URL as it seems similar issue


The issue is related to shell, you will have to ask your provider to make the required changes on the server.
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 39234585
Thanks for the advice, I forwarded it over to the support team and the problem now seems resolved.


Author Closing Comment

ID: 39234588
Thanks for the advice, I forwarded it over to the support team and the problem now seems resolved.


Expert Comment

by:Milind Koyande
ID: 39237031
You are most welcome and glad its fixed now :)

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question