title: How to use MAMP PHP on macOS big Sur
body: <p>I updated the to <em>MacOS Big Sur</em> and then switched to <em>MAMP Pro 6.3</em> from MAMP 4.x.</p>
  <p><code>which php</code> commands results the</p>
  <blockquote>
  <p>usr/php/bin/</p>
  </blockquote>
  <p>I updated the path using following.
  <code>vim ~/.bash_profile</code></p>
  <blockquote>
  <p>export PATH=/Applications/MAMP/bin/php/php7.4.12/bin:$PATH export
  PATH=&quot;$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH&quot;</p>
  </blockquote>
  <p>Press esc and then
  <code>:wq</code></p>
  <p><code>source ~/.bash_profile</code></p>
  <p>Now when I do <code>which php</code> it shows <strong>MAMP's php7.4.12</strong> but if close and re-open the terminal, it again says</p>
  <blockquote>
  <p>usr/php/bin</p>
  </blockquote>
  <p>Btw, PHP 7.4.12 is set as Default version in MAMP Pro from PHP settings in MAMP Pro.</p>
  <p><strong>Versoins</strong></p>
  <ul>
  <li>macOS Big Sur version 11.1</li>
  <li>MAMAP 6.3</li>
  </ul>