BefittingTheorem
BefittingTheorem

Reputation: 10629

Disable Apple PHP on Mac OS and use XAMPP instead

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

Answers (2)

Greg
Greg

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

KB22
KB22

Reputation: 6969

I'd suggest to uninstall the apple php package. You can reinstall it anytime... Of course you would have to tell osx to use XAMPP 's php interpreter instead of the on board one.

Basically this should be sufficent to achieve the change in the file handling.

Upvotes: 0

Related Questions