title: apache + nginx ubuntu php system variables value not always same
body: <p>In php.ini, I have <code>sys_temp_dir = "/tmp"</code> which is by default </p>
  
  <p>In apache config I am setting it like </p>
  
  <pre><code>php_admin_value sys_temp_dir = /home/some_user/tmp
  </code></pre>
  
  <p>In my test file I am using it as </p>
  
  <pre><code>&lt;?php
  echo sys_get_temp_dir(); 
  </code></pre>
  
  <p>Output is :</p>
  
  <pre><code>attempt 1: /home/some_user/tmp
  attempt 2: /home/some_user/tmp
  attempt 3: /tmp
  </code></pre>
  
  <p><code>Pattern is not always same /tmp can come in any attempt</code></p>
  
  <p>Please note: I am using apache2 + nginx and each attempt I am talking about is happening on the browser.</p>
  
  <p>My question is why this strange thing happening on the server and how I can solve this.</p>