Reputation: 127
I am trying to set some system wide environment variables that will be accessible by any user on the system running ubuntu 14.04. I also need to set these same variables to be accessible by a php cli application, nginx & phpfpm web application and also an apache & phpfpm web application.
What would be the best way to go about setting them?
Thanks in advance for your help.
Upvotes: 1
Views: 590
Reputation: 1074
I'm an Ubuntu novice but recently I had to set the environment variables. I edited the file /etc/environment
I also have running nginx and php-cli, but I don't see what env variables they need to work. All their settings are contained in their conf files.
Upvotes: 1