title: Set PHP path correctly for MAMP Pro
body: <p>MAMP Pro makes you edit a php.ini template through the application and it creates the file in <code>/Library/Application Support/appsolute/MAMP PRO/conf/php.ini</code> each time MAMP Pro is started. How do I get it to use this php.ini on the command line? I have this entry in my <code>.bash_profile</code> file currently:</p>
  
  <pre><code>export PATH=/Applications/MAMP/bin/php/php5.4.4/bin:/Applications/MAMP/Library/bin:$PATH
  </code></pre>
  
  <p>This shows the correct PHP version at the command line, but the wrong config file:</p>
  
  <pre><code>$ php -i | grep php\.ini
  Configuration File (php.ini) Path =&gt; /Applications/MAMP/bin/php/php5.4.4/conf
  Loaded Configuration File =&gt; /Applications/MAMP/bin/php/php5.4.4/conf/php.ini
  $ php --version
  PHP 5.4.4 (cli) (built: Jul  4 2012 17:28:56) 
  </code></pre>
  
  <p>How can I get this to work so that it uses the php.ini file from the path in the first paragraph? Thanks in advance.</p>