• 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.

Scheduled Tasks 11.5 failing

TheHostingHeroes

Basic Pleskian
Hi,

When using Plesk 11.5's scheduled tasks (trying to call a website script via curl) I get "/usr/bin/curl: No such file or directory". This is a Scheduled task set on a subscription, not the admin account, so is this possibly related to a permissions issue when calling curl?

curl does exist on the server:
# which curl
/usr/bin/curl

Is there something I'm missing? - I've tried exactly how it shows at:
http://kb.parallels.com/en/115292 (/usr/bin/curl -sL http://domain.test/script.php >/dev/null)


EDIT:
I've got it working under the ROOT user, how can we get it working for the end user?
 
Last edited:
Hello,

Just checked that it is working fine on the newly created subscription. The info about my system:

[root@ppp115 ~]# plesk version
Product version: 11.5.30 Update #32
Update date: 2014/02/07 01:41
Build date: 2013/12/04 15:00
Build target: CentOS 6
Revision: 324178
Architecture: 64-bit
Wrapper version: 1.1

My steps:

1. Created test script with the content:
vim /var/www/vhosts/crontab.ru/httpdocs/script.php

<?php
phpinfo();
?>

2. Set permissions:
chmod 777 /var/www/vhosts/crontab.ru/httpdocs/script.php

3. Created the file to save output:
touch /var/www/vhosts/crontab.ru/httpdocs/out.txt
chmod 777 /var/www/vhosts/crontab.ru/httpdocs/out.txt

Checked that script runs every second:
Feb 18 07:26:01 ppp115 crond[1208]: (crontabuser) RELOAD (/var/spool/cron/crontabuser)
Feb 18 07:26:01 ppp115 CROND[9460]: (crontabuser) CMD (/usr/bin/curl -sL http://crontab.ru/script.php > /var/www/vhosts/crontab.ru/httpdocs/out.txt)
Feb 18 07:27:01 ppp115 CROND[9470]: (crontabuser) CMD (/usr/bin/curl -sL http://crontab.ru/script.php > /var/www/vhosts/crontab.ru/httpdocs/out.txt)
Feb 18 07:28:01 ppp115 CROND[9476]: (crontabuser) CMD (/usr/bin/curl -sL http://crontab.ru/script.php > /var/www/vhosts/crontab.ru/httpdocs/out.txt)
Feb 18 07:29:01 ppp115 CROND[9483]: (crontabuser) CMD (/usr/bin/curl -sL http://crontab.ru/script.php > /var/www/vhosts/crontab.ru/httpdocs/out.txt)
Feb 18 07:30:01 ppp115 CROND[9491]: (crontabuser) CMD (/usr/bin/curl -sL http://crontab.ru/script.php > /var/www/vhosts/crontab.ru/httpdocs/out.txt)
Feb 18 07:31:01 ppp115 CROND[9508]: (crontabuser) CMD (/usr/bin/curl -sL http://crontab.ru/script.php > /var/www/vhosts/crontab.ru/httpdocs/out.txt)

4. Got the output
du -sh /var/www/vhosts/crontab.ru/httpdocs/out.txt
56K /var/www/vhosts/crontab.ru/httpdocs/out.txt

Check the settings on the screenshot also.
Capture.PNG

Capture1.PNG
 
Back
Top