• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Schedule Task - command not found and domain folders structure modified

Salvatore Brosio

New Pleskian
TITLE:
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
task.png

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:
  1. - Server and Plesk freshly installed
  2. - Create a new subscription
  3. - Enter subscription
  4. - Run "php -i" or "composer -V" inside Schedule Task
ACTUAL RESULT:
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:
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:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 

Attachments

  • filemanager.png
    filemanager.png
    51.4 KB · Views: 1

Hi IgorG, and thanks a lot for your time!

In every other Plesk Panel i've installed on my servers "php -i" run without any issue, no need to specify absolute path, in add, in this case even specifying absolute path php executable result in a not found error.

I never permitted ssh access to user in configuration and Schedule config is set to chrooted bash, both olds and new servers.

I found that command is executed if i set Schedule to run on /bin/sh , but this is very strange because it is the first time that i need to set params this way!
 
Back
Top