title: How come my php settings on CLI and Apache are different? (OSX Lion Server)
body: <p>I am currently setting up my New Mac Mini Lion server. 
  I am now installing mongodb and apc extension.
  I want to include the ini settings for the extensions on the /etc/php.d directory (similar with my server settings on centOS)</p>
  
  <p>I tried to do </p>
  
  <pre><code>php -i | grep php.d
  </code></pre>
  
  <p>and it gives me</p>
  
  <pre><code>Scan this dir for additional .ini files =&gt; /etc/php.d/
  Additional .ini files parsed =&gt; /etc/php.d/apc.ini,
  /etc/php.d/mongo.ini
  PHP_INI_SCAN_DIR =&gt; /etc/php.d/
  _SERVER["PHP_INI_SCAN_DIR"] =&gt; /etc/php.d/
  </code></pre>
  
  <p>But when I tried on phpinfo() on a php script, I got:</p>
  
  <pre><code>Configuration File (php.ini) Path   /etc
  Loaded Configuration File   /private/etc/php.ini
  Scan this dir for additional .ini files     (none)
  Additional .ini files parsed    (none) 
  </code></pre>
  
  <p>The php environment on CLI and php script is the same
  which php</p>
  
  <blockquote>
    <p>/usr/bin/php</p>
  </blockquote>
  
  <p>and on php script page</p>
  
  <blockquote>
    <p>PATH  /usr/bin:/bin:/usr/sbin:/sbin</p>
  </blockquote>
  
  <p>Is there anything I should set on the apache side?</p>
  
  <p>I am thinking to stick with the Built-in apache and php from the mac installation because I like the Server App from Mac.</p>
  
  <p>Please help me.</p>
  
  <p>Thank You</p>