• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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