• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Scheduled Tasks: sh: /mkdir: No such file or directory

GGEder234

New Pleskian
Please help!

I set Scheduled Task, * * * * * php -q /var/www/vhosts/domain.com/httpdocs/234/100-100.php

I try to execute script with exec('mkdir /folder/') and get response sh: /mkdir: No such file or directory.

# php -v
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP 5.3.3 (cli) (built: Jul 12 2013 20:35:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

# uname -a
Linux 2.6.32-131.17.1.el6.x86_64 #1 SMP Thu Oct 6 19:24:09 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
 
Code:
<?

$exec = "mkdir /tmp/fld1";
$a = exec($exec, $b, $c);

mail('[email protected]', 'cron mail subj 1', print_r($a,1)."--".print_r($b,1)."--".print_r($c,1));


$exec = "/bin/mkdir /tmp/fld2";
$a2 = exec($exec, $b2, $c2);

mail('[email protected]', 'cron mail subj 2', print_r($a2,1)."--".print_r($b2,1)."--".print_r($c2,1));

?>

Safe mode: OFF

Response: --Array () --127
 
Back
Top