User Tools

Site Tools


php-fpm path configuration security warning

php does not seem to be setup properly to query system environment variables. The test with getenv(“PATH”) only returns an empty response. Please check the installation documentation ↗ for php configuration notes and the php configuration of your server, especially when using php-fpm.

This security waring is possible to solve by uncommenting PATH in www.conf file.

Open configuration:

vim /etc/php7-fpm.d/www.conf 

remove semicolon from the beginning of this line:

;env[PATH] = /usr/local/bin:/usr/bin:/bin

and reload updated configuration:

/etc/init.d/php7-fpm reload

You can see more detailed info in Installation Guide.