title: Environment variables readable by Apache/PHP and Systemd/node
body: <p>On the same server, I have a apache php application and a nodejs application (started via systemd).</p>
  
  <p>For systemd/node, I put the following config:</p>
  
  <pre><code>[Service]
  EnvironmentFile=/etc/environment
  </code></pre>
  
  <p>For apache, I have put the following line in <code>/etc/apache2/envvars</code></p>
  
  <pre><code>. /etc/environment
  </code></pre>
  
  <p>My problem is:</p>
  
  <ul>
  <li>It works in PHP and standalone node if I put <code>export</code> before each variable, but not in node via systemd</li>
  <li>It works in node via systemd if I remove the <code>export</code></li>
  </ul>
  
  <p>Is there a way for me to write these variables in a single place that can be used by Apache/PHP and node started via systemd ?</p>