Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hidayat3676's avatar

how to set xampp php path to PATH on Mac to Override the default php

Hi, i've install xampp on my Mac which has php version 7.2.x, but when i type php -v on terminal it's show php version 5.6 which i know is already came with mac because when i type command

which php
it's show me 
usr/local/php

so how do i set my xampp php version to my path because i use it for a laravel 5.6 project which need php 7.1 or 7.2 i tried different method from google but known of it works for me.i'm stuck here without moving to my actual work for a few hour, hope someone have the solution.

0 likes
3 replies
hidayat3676's avatar

@Tray this is not working in my case i seen at already. but no good result

Please or to participate in this conversation.