Skip to content

Instantly share code, notes, and snippets.

@zkenstein
Forked from hanafiah/php.xampp.mac.sh
Created June 3, 2016 05:08
Show Gist options
  • Save zkenstein/abac4c3e5bde992813a961b35b5d8784 to your computer and use it in GitHub Desktop.
Save zkenstein/abac4c3e5bde992813a961b35b5d8784 to your computer and use it in GitHub Desktop.
ubah default php path dalam mac osx
#1. buka terminal, dan taip arahan di bawah
which php
#2. secara default, lokasi php adalah seperti berikut
/usr/bin/php
#3. edit bash_profile
sudo vim ~/.bash_profile
#4. masukkan line dibawah
export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
#5. restart terminal dan taip arahan dibawah
which php
#6. jika langkah di atas sukses, path yang dipaparkan adalah seperti langkah 4 di atas
/Applications/XAMPP/xamppfiles/bin/php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment