Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I execute which php in Bash I get /usr/bin/php. Everything is working fine but I'm wondering - since I'm running XAMPP, should I get /Applications/XAMPP/xamppfiles/bin instead?

Note: I'm using OSX 10.7.

share|improve this question
up vote 1 down vote accepted

/usr/bin/php mean it's php default installed on macos, for xampp it should be on /Applications/XAMPP/xamppfiles/bin. if you want use php version from xampp, you can disabled /usr/bin/php and make symlink /Applications/XAMPP/xamppfiles/bin/php to /usr/bin/php.

share|improve this answer
Is there any benefit to using XAMPP's own php binary instead of the one of the OS? – Emanuil Rusev Aug 15 '11 at 10:30
if you develop and tested using XAMPP, better using XAMPP version, because it could be php version/setting different. sometimes xampp version and macos one include different php modules. – chocripple Aug 15 '11 at 10:33
Aren't PHP modules separate files? – Emanuil Rusev Aug 15 '11 at 10:46
yes,you're right. but when you execute php, it will loaded the modules that you enabled on php setting. – chocripple Aug 15 '11 at 11:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.