Report this

What is the reason for this report?

Setting environment variables in php-fpm

Posted on August 13, 2014

I’m trying to get some environment variables set in php-fpm. I’ve changed the php.ini variable_orders to ‘EGPCS’ and then in I edit /etc/php5/fpm/pool.d/www.conf

 env[TEST] = something

I restart the php-fpm process with

 /etc/init.d/php5-fpm restart

I restart nginx with

nginx -s reload

when I do a print_r($_ENV) on the site, nothing. is there something I’m missing?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.