title: why is my php.ini not found?
body: <p>I config/make/make install php on a system where php is already installed:</p>
  
  <pre><code> ./configure --prefix=/opt/php
   --with-config-file-path=/opt/php/etc --with-config-file-scan-dir=/opt/php/etc/php.d
   --enable-fpm --with-fpm-user=ec2-user --with-fpm-group=ec2-user --disable-debug 
   --enable-exif --with-curl --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-
   pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-bcmath --enable-calendar 
   --enable-ftp --with-mhash --with-openssl --with-mcrypt --enable-mbstring --enable-
   mbregex --with-gd --with-jpeg-dir --with-png-dir
  </code></pre>
  
  <p>(all ok) however, when I type php --ini (inside /opt/php/bin) I get the old stuff:</p>
  
  <pre><code>&gt; Configuration File (php.ini) Path:
  &gt; /etc Loaded Configuration File:       
  &gt; /etc/php.ini Scan for additional .ini
  &gt; files in: /etc/php.d Additional .ini
  &gt; files parsed:      /etc/php.d/apc.ini,
  &gt; /etc/php.d/curl.ini,
  &gt; /etc/php.d/fileinfo.ini,
  &gt; /etc/php.d/json.ini,
  &gt; /etc/php.d/mbstring.ini,
  &gt; /etc/php.d/phar.ini,
  </code></pre>
  
  <p>why / how can i fix this?</p>
  
  <p>my bashrc: </p>
  
  <blockquote>
    <p>if [ -d "/opt/php/bin"] &amp;&amp; [ -d
    "/opt/php/sbin" ]; then 
    PATH="$path:/opt/php/bin:/opt/php/bin"</p>
  </blockquote>
  
  <p>my php-config looks ok:</p>
  
  <pre><code>Usage: ./php-config [OPTION]
  Options:
    --prefix            [/opt/php]
    --includes          [-I/opt/php/include/php -I/opt/php/include/php/main -I/opt/php/include/php/TSRM -I/opt/php/include/php/Zend -I/opt/php/include/php/ext -I/opt/php/include/php/ext/date/lib]
    --ldflags           []
    --libs              [-lcrypt   -lz -lcrypt -lrt -lmcrypt -lltdl -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl  -lrt -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt ]
    --extension-dir     [/opt/php/lib/php/extensions/no-debug-non-zts-20090626]
    --include-dir       [/opt/php/include/php]
    --php-binary        [/opt/php/bin/php]
    --php-sapis         [cli fpm]
    --configure-options [--prefix=/opt/php --with-config-file-path=/opt/php/etc --with-config-file-scan-dir=/opt/php/etc/php.d --enable-fpm --with-fpm-user=ec2-user --with-fpm-group=ec2-user --disable-debug --enable-exif --with-curl --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-bcmath --enable-calendar --enable-ftp --with-mhash --with-openssl --with-mcrypt --enable-mbstring --enable-mbregex --with-gd --with-jpeg-dir --with-png-dir]
    --version           [5.3.5]
    --vernum            [50305]
  </code></pre>
  
  <p>but... myphp.ini does not, it seems my --with-config-file-path=PATH (Sets the path in which to look for php.ini, defaults to PREFIX/lib.) somehow is not working?</p>