Salvatore Brosio
New Pleskian
TITLE:
ACTUAL RESULT:
Schedule Task - command not found and domain folders structure modified
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk Onyx 17.8.11 #14, Ubuntu 16.04.4
PROBLEM DESCRIPTION:The Server is freshly installed (for the third time) and the only one subscription recreated from scratch.
I tried with Ubuntu 16.04.4 and CentOS Linux 7.5.1804.
When I try to launch a php command from “Schedule task” I ran into this error:
Task “php -i” completed with error in 0 seconds, output:
-: php: command not found
It happens the same thing when I try to launch composer:
Task “composer -V” completed with error in 0 seconds, output:
-: composer: command not found

There is another strange behavior, after the subscription creation. The folder structure is:
|
|-err_docs
|-httpdocs
|-logs
but, after I run any command in Schedule Task, structure results modified and become:
View attachment 14604
you can see by yourself. It seems a chrooted environment! (timestamp different for new structure)
I own many others servers equipped with Plesk, all running fine!
This is the first time that I cannot solve it by myself! I think that it could be a bug!
Server is located at Hetzner:
Dedicated Root Server Hosting - Hetzner Online GmbH
STEPS TO REPRODUCE:I tried with Ubuntu 16.04.4 and CentOS Linux 7.5.1804.
When I try to launch a php command from “Schedule task” I ran into this error:
Task “php -i” completed with error in 0 seconds, output:
-: php: command not found
It happens the same thing when I try to launch composer:
Task “composer -V” completed with error in 0 seconds, output:
-: composer: command not found

There is another strange behavior, after the subscription creation. The folder structure is:
|
|-err_docs
|-httpdocs
|-logs
but, after I run any command in Schedule Task, structure results modified and become:
View attachment 14604
you can see by yourself. It seems a chrooted environment! (timestamp different for new structure)
I own many others servers equipped with Plesk, all running fine!
This is the first time that I cannot solve it by myself! I think that it could be a bug!
Server is located at Hetzner:
Dedicated Root Server Hosting - Hetzner Online GmbH
- - Server and Plesk freshly installed
- - Create a new subscription
- - Enter subscription
- - Run "php -i" or "composer -V" inside Schedule Task
Running "php -i" or "composer -V" return:
-: php: command not found
and
-: composer: command not found
and subscription folder structure from:
error_docs July 18, 2018 12:53 PM rwx r-x r-x brosal_adm psacln
httpdocs July 18, 2018 12:53 PM rwx r-x --- brosal_adm psaserv
logs July 18, 2018 12:53 PM rwx --- --- brosal_adm root
is changed to:
bin July 18, 2018 12:54 PM r-x r-x root root
dev July 18, 2018 12:54 PM r-x r-x root root
error_docs July 18, 2018 12:53 PM rwx r-x r-x brosal_adm psacln
etc July 18, 2018 12:54 PM rwx r-x r-x root root
httpdocs July 18, 2018 12:53 PM rwx r-x --- brosal_adm psaserv
lib July 18, 2018 12:54 PM rwx r-x r-x root root
lib64 July 18, 2018 12:54 PM rwx r-x r-x root root
logs July 18, 2018 12:53 PM rwx --- --- brosal_adm root
tmp July 18, 2018 12:54 PM rwx rwx rwx root root
usr July 18, 2018 12:54 PM rwx r-x r-x root root
var July 18, 2018 12:54 PM rwx r-x r-x root root
sbin July 18, 2018 12:36 PM 0 B rwx rwx rwx root root
EXPECTED RESULT:-: php: command not found
and
-: composer: command not found
and subscription folder structure from:
error_docs July 18, 2018 12:53 PM rwx r-x r-x brosal_adm psacln
httpdocs July 18, 2018 12:53 PM rwx r-x --- brosal_adm psaserv
logs July 18, 2018 12:53 PM rwx --- --- brosal_adm root
is changed to:
bin July 18, 2018 12:54 PM r-x r-x root root
dev July 18, 2018 12:54 PM r-x r-x root root
error_docs July 18, 2018 12:53 PM rwx r-x r-x brosal_adm psacln
etc July 18, 2018 12:54 PM rwx r-x r-x root root
httpdocs July 18, 2018 12:53 PM rwx r-x --- brosal_adm psaserv
lib July 18, 2018 12:54 PM rwx r-x r-x root root
lib64 July 18, 2018 12:54 PM rwx r-x r-x root root
logs July 18, 2018 12:53 PM rwx --- --- brosal_adm root
tmp July 18, 2018 12:54 PM rwx rwx rwx root root
usr July 18, 2018 12:54 PM rwx r-x r-x root root
var July 18, 2018 12:54 PM rwx r-x r-x root root
sbin July 18, 2018 12:36 PM 0 B rwx rwx rwx root root
subscription folder structure need to remain:
error_docs July 18, 2018 12:53 PM rwx r-x r-x brosal_adm psacln
httpdocs July 18, 2018 12:53 PM rwx r-x --- brosal_adm psaserv
logs July 18, 2018 12:53 PM rwx --- --- brosal_adm root
and Schedule Task command:
Task "php -i" successfully completed in 0 seconds, output:
phpinfo()
PHP Version => 7.0.30-0ubuntu0.16.04.1
System => Linux production-01.entopanlab.it 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64
Server API => Command Line Interface....
and:
Task "composer -V" successfully completed in 0 seconds, output:
Composer version 1.7-dev (1016cf19b2c6212b76df5b4f58ba1be8382e5945) 2018-05-24 09:16:40
ANY ADDITIONAL INFORMATION:error_docs July 18, 2018 12:53 PM rwx r-x r-x brosal_adm psacln
httpdocs July 18, 2018 12:53 PM rwx r-x --- brosal_adm psaserv
logs July 18, 2018 12:53 PM rwx --- --- brosal_adm root
and Schedule Task command:
Task "php -i" successfully completed in 0 seconds, output:
phpinfo()
PHP Version => 7.0.30-0ubuntu0.16.04.1
System => Linux production-01.entopanlab.it 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64
Server API => Command Line Interface....
and:
Task "composer -V" successfully completed in 0 seconds, output:
Composer version 1.7-dev (1016cf19b2c6212b76df5b4f58ba1be8382e5945) 2018-05-24 09:16:40
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug