-
-
Save zkenstein/abac4c3e5bde992813a961b35b5d8784 to your computer and use it in GitHub Desktop.
ubah default php path dalam mac osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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