In my previous Centos 6.10 server , I have been able to pass some environment variables to httpd by adding to /etc/sysconfig/httpd
. ~/.envvars
.envvars content is
export MY_PASSWORD='somepassword'
and then in http.conf
SetEnv MY_PASSWORD ${MY_PASSWORD}
and easily accessing the variable in php trough $_SERVER['MY_PASSWORD'] but after upgrading to Centos 7.7 this stopped working, in the logs I get:
AH00111: Config variable ${MY_PASSWORD} is not defined
any help is greatly appreciated