title: How to set up environment variable for PHP to access in centos?
body: <p>I need to set an <strong>environment variable</strong> in a way that a PHP script is able to access it</p>
  
  <p>my system is <strong>Centos 6, 64 bits</strong> , with Apache server and PHP</p>
  
  <p>Basically I'm using a third party linux library that uses xulrunner. Xulrunner is installed on a folder in the centos server.</p>
  
  <p>I need to set an environment variable to indicate this tool where xulrunner is installed.</p>
  
  <p>When i set that environment variable using</p>
  
  <pre><code> Export Variable=location
  </code></pre>
  
  <p>In the <code>ssh</code> command line, it works great, perfect, and the tool executes perfect</p>
  
  <p>but when I try from php it fails because its not finding the location, because obviously its not accessing that environment variable</p>
  
  <p>so I need help to set an environment variable in a way that PHP script and user apache can access it</p>
  
  <p>thank you</p>