# Path issue in Nextcloud

**URL:** <https://help.nextcloud.com/t/path-issue-in-nextcloud/5469>\
**Category:** ℹ️ Support\
**Created:** [November 24, 2016, 4:01pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469 "2016-11-24T16:01:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 4:01pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/1 "2016-11-24T16:01:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 4:11pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/3 "2016-11-24T16:11:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 4:54pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/5 "2016-11-24T16:54:52Z")

</div>

> [@grouchysysadmin](#):
>
> \<?php  
> print\_r($\_ENV[‘PATH’]);

The output is empty…

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 4:58pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/6 "2016-11-24T16:58:53Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 5:15pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/8 "2016-11-24T17:15:20Z")

</div>

The PHP path is

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

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 5:21pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/10 "2016-11-24T17:21:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 5:26pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/12 "2016-11-24T17:26:25Z")

</div>

Is edited the variables\_order and reload Apache, Nginx and php

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 5:32pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/14 "2016-11-24T17:32:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 5:38pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/16 "2016-11-24T17:38:12Z")

</div>

Can you look at my info.php?

[https://cloud.land-laeufer.de/info.php](https://cloud.land-laeufer.de/info.php)

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [November 24, 2016, 5:42pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/18 "2016-11-24T17:42:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 6:20pm UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/20 "2024-09-23T18:20:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 10:56am UTC](https://help.nextcloud.com/t/path-issue-in-nextcloud/5469/21 "2024-12-09T10:56:03Z")

</div>


