title: Write apache environment variables and read them in php script
body: <p>I have an index.php file that is running some script making mysql requests. For obvious security reason, i'd like to remove the mysql credentials (host, password, user, database) from this script and replace them with some apache environment variables.</p>
  
  <p>I tried to create such variables in /etc/apache2/envvars using following line of code : <code>export MYSQL_USER='my_user'</code> and then I intend to get it back using getEnv php function like this : <code>getenv('MYSQL_USER')</code> but this returns nothing.</p>
  
  <p>Any idea ? Thanks !</p>