Jump to content

SoloLVL

New Members
  • Posts

    5
  • Joined

  • Last visited

SoloLVL's Achievements

Newbie

Newbie (1/5)

0

Reputation

1

Community Answers

  1. Proven solution: do not start supervisor like but as Reference
  2. UPD: php is started via supervisor. If I stop that via supervisor and start in the same way, but manually via shell -- then I am able to get env vars.
  3. I like your idea about putting them into config file during deployment, thanks! Regarding .env file -- I use Laravel and obviously use that .env file for vars & secrets, but I use aws-php-sdk, which uses getenv() function to get aws creds from env vars of the pod. I also cache configs, so .env file no more readable after caching, that's why I am so worried about the fact I cannot access system level env vars. But the most weird point is that other Laravel & Symfony apps of the friend of mine with the same configs have access to system lvl env vars. Appreciate your time and help!
  4. Thanks! The env vars I need are sensitive, so I just cannot set them in plaintext within config files of the server
  5. Problem: php-fpm unable to access env vars via getenv() func, meanwhile php-cli can Circumstances: -- php version 8.1.10 -- clear_env is set to no in /etc/php/8.1/fpm/pool.d/www.conf -- vars are set, thus is it possible to see them via shell env command or via php-cli with getenv() -- using ubuntu22 -- php-fpm runs under user which has access to those env vars Open to any thought, ready to provide more details
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.