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.
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.


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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

650 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