Reputation: 10629
Hi I've installed XAMPP and I want to use the PHP that comes with it from the command line.
So I'm looking to disable the Apple version of PHP and related tools.
Anyone know a clean way of doing this, while allowing Apples PHP to be re-enabled again relatively easily?
Upvotes: 0
Views: 5418
Reputation: 10360
Turning off web-sharing (Sys Prefs -> Sharing) will let you set XAMPP to listen on :80, and it will use it's own version of PHP.
For CLI, you can setup an alias in your .profile to point at the XAMPP version or put the XAMPP bin folder (wherever the php executable is found...) in your PATH, ahead of /usr/bin
Upvotes: 3