Path issue in Nextcloud

Hello, I got following warning at nextcloud.

When I check the Path I got following message:

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

In /etc/php/7.0/fpm/pool.d/www.conf

I have these settings:

env[HOSTNAME] = $HOSTNAME

env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

What is wrong?

How can I check which path nextcloud is needed?

Oh sorry forgot to add them

PHP does not appear to be properly set up to query system environment variables. The test with getenv ( "PATH") returns only an empty response.

The output is empty…

This is my php.ini

PHP] cli_server.color = On mysqli.max_persistent = -1 session.use_only_cookies = 1 register_argc_argv = Off open_basedir = "/var/www/vhosts/land-laeufer.de/:/tmp/:/:/dev/urandom" session.name = PHPSESSID mysqlnd.collect_statistics = On session.hash_function = 0 session.gc_probability = 0 log_errors_max_len = 1024 pgsql.max_links = -1 variables_order = "GPCS" ldap.max_links = -1 max_input_time = 60 odbc.max_links = -1 session.save_handler = files session.save_path = "/var/lib/php/sessions" mysqli.cache_size = 2000 pgsql.auto_reset_persistent = Off error_reporting = 22519 auto_prepend_file = auto_globals_jit = On zend.assertions = -1 soap.wsdl_cache_ttl = 86400 allow_url_fopen = On zend.enable_gc = On mysqli.allow_persistent = On tidy.clean_output = Off display_startup_errors = Off user_dir = session.cookie_lifetime = 0 mysqli.max_links = -1 default_socket_timeout = 60 session.serialize_handler = php session.hash_bits_per_character = 5 unserialize_callback_func = pdo_mysql.cache_size = 2000 default_mimetype = "text/html" session.cache_expire = 180 max_execution_time = 30 mail.add_x_header = On upload_max_filesize = 2M ibase.max_links = -1 zlib.output_compression = Off ignore_repeated_errors = Off odbc.max_persistent = -1 file_uploads = On ibase.max_persistent = -1 mysqli.reconnect = Off session.use_trans_sid = 0 odbc.defaultbinmode = 1 output_buffering = 4096 ibase.timeformat = "%H:%M:%S" doc_root = log_errors = On pgsql.max_persistent = -1 default_charset = "UTF-8" request_order = "GP" display_errors = Off mysqli.default_socket = mysqli.default_pw = html_errors = On ibase.allow_persistent = 1 post_max_size = 8M engine = On memory_limit = 128M short_open_tag = Off SMTP = localhost precision = 14 session.use_strict_mode = 0 session.gc_maxlifetime = 1440 allow_url_include = Off mysqli.default_host = mysqli.default_user = session.referer_check = pgsql.log_notice = 0 pgsql.ignore_notice = 0 ibase.timestampformat = "%Y-%m-%d %H:%M:%S" soap.wsdl_cache_limit = 5 odbc.allow_persistent = On ibase.dateformat = "%Y-%m-%d" track_errors = Off max_file_uploads = 20 pgsql.allow_persistent = On session.auto_start = 0 auto_append_file = disable_classes = pdo_mysql.default_socket = soap.wsdl_cache_dir = "/tmp" url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" smtp_port = 25 sql.safe_mode = Off session.cookie_path = / expose_php = On report_memleaks = On session.gc_divisor = 1000 serialize_precision = 17 odbc.check_persistent = On mysqlnd.collect_memory_statistics = Off session.cookie_domain = session.cookie_httponly = session.cache_limiter = nocache enable_dl = Off mysqli.default_port = 3306 disable_functions = odbc.defaultlrl = 4096 soap.wsdl_cache_enabled = 1 session.use_cookies = 1 implicit_flush = Off ignore_repeated_source = Off bcmath.scale = 0

The PHP path is

/opt/plesk/php/7.0/etc/php.ini

Yes Plesk :innocent: not the best, I know. Using it with Ubuntu 16.04

Is edited the variables_order and reload Apache, Nginx and php

No. Is still empty. For this I hate Plesk…

Can you look at my info.php?

https://cloud.land-laeufer.de/info.php

printenv PATH show the path

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

php InfoPath.php show this:

PHP Notice: Undefined index: PATH in /var/www/vhosts/land-laeufer.de/cloud.land-laeufer.de/nextcloud/infopath.php on line 2