Nextcloud displays the following message in the admin interface after a standard installation. Fixing this is quite easy.
- PHP does not seem to be set up correctly to query system environment variables. The test with getenv ("PATH") only returns an empty answer.
Please read the installation documentationfor notes on PHP configuration and check the PHP configuration of your server, especially if PHP-FPM is used.
In our example, we use PHP7 as the FPM module. Therefore we have to comment out the following lines in the file /etc/php/7.0/fpm/pool.d/www.conf (remove the semicolon at the beginning of the line)
env[HOSTNAME] = $HOSTNAME env[PATH] = /usr/local/bin:/usr/bin:/bin env[TMP] = /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp
Finally, we restart PHP7-FPM
/etc/init.d/php7.0-fpm reload
Leave a comment now