title: How to set php path for Xampp 8.0 in mac?
body: <p>I have installed xampp 8.0 in macbook. There is no xampp folder in &quot;applications&quot; folder. Xampp 8.0 is installed at</p>
  <pre><code>/Users/kamlesh/.bitnami/stackman/machines/xampp/volumes/root/htdocs/ 
  </code></pre>
  <p>phpmyadmin and phpinfo of xampp 8.0 are working in the browser. If I add a test.php file in htdocs directory then it also works in the browser.</p>
  <p>Xampp 8.0 has php 8 version and I want to set its path in bash_profile file so that when I use &quot;php -v&quot; command in terminal then it should show php 8.0 version. I have set strings in bash_profile file as, but not working yet:</p>
  <pre><code>export XAMPP_HOME=/Users/kamlesh/.bitnami/stackman/machines/xampp/volumes/root
  export PATH=${XAMPP_HOME}/bin:${PATH}
  export PATH
  </code></pre>
  <p>I have also tried below settings in bash_profile file, but still not getting php 8 version in command line:</p>
  <pre><code>export PATH=/opt/lampp/bin:${PATH}
  export PATH
  </code></pre>
  <p>Any suggestion will be highly appreciated. Thanks a lot friends.</p>