• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Cronjob problems with Plesk 11.5.30#44

Peter Lanser

New Pleskian
Hi Guys,
i'm running in some troubles with Plesk 11.5.3 cronjobs. I have several machines running with plesk and cronjobs (Scheduled Tasks in Plesk) with no hickups or errors.
This time however i don't get a simple cronjob php script working. I also googled for the problem and we get several answers back. That's why we try all answers, but all with no result.

Hope some can help me? Kind regards,
Peter
---------------------------------------------------------------
PRODUCT, VERSION, MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk, Plesk 11.5,30 MU#44, Uubntu 12.04.4 LTS x64

PROBLEM DESCRIPTION
The cronjob with phpcode: Hello World will not execute from the cronjob defined in Parallels Plesk

STEPS TO REPRODUCE
1) in a domain create a cronjob
2) define the cronjob in scheduled tasks with:
- php /var/www/vhosts/domain.tld/httpdocs/testcron.php
-/usr/bin/php /var/www/vhosts/domain.tld/httpdocs/testcron.php
ACTUAL RESULT
A result mail with: error php not found, and error /usr/bin/php not found (this seems a common problem after we are googlet it.
3) define the cronjob in scheduled task with:
- wget http://www.domain.tld/testcron.php
-curl "domain.tld/testcron.php"
of course with some variations in the syntax.

ACTUAL RESULT
A result mail with: a blank error for wget and curl gives a resolving error: could not resolve domain.tld
EXPECTED RESULT
Hello world in the e-mail

ANY ADDITIONAL INFORMATION
--------------------------------------------------------------
how testcron.php is made:
<?php
echo "hello world";
echo "<br/>";
echo PHP_BINDIR;
echo "**";
?>
 
Back
Top