Pulkit
Pulkit

Reputation: 127

Permanent environment variables for ubuntu (system, php, phpfpm and nginx or apache)

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

Answers (1)

Andrei Nikolaenko
Andrei Nikolaenko

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

Related Questions