• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Question Change PATH Variable

Larsm

Basic Pleskian
Hello,

i switched from PHP7.2 with apache to Nginx with php7.2-fpm. Now i get this Warning in my Nextcloud Installation:

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

i have uncomment this Line in /etc/php/7.0/fpm/pool.d/www.conf


;env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

printenv PATH give me this:

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


what is wrong, can anyone help me?

best regards Lars
 
Back
Top