• 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

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