Ask Different is a question and answer site for power users of Apple hardware and software. 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

I've just installed XAMPP on Mac OS X Snow Leopard, and everything is running correctly and setup completely well.

However, I want to install an open source project that requires PHP 5.3.2 or higher. I visited the official PHP website and downloaded PHP 5.4.5.

How can I update my PHP version so that it runs with this latest version?

I visited:

Places -> Application -> XAMPP -> xamppfiles -> ???

I'd appreciate any guidance. Thanks!

share|improve this question

migrated from Jul 21 '12 at 11:55

This question came from our site for professional and enthusiast programmers.

Hi did you get any where with the solution ? – ro ko Nov 10 '12 at 10:06
What about brew? E.g. brew install php? – CousinCocaine Apr 30 '15 at 15:03

Not to lead you in a different direction, but if you were using MAMP (free version) on OS X, that comes with the most up-to-date version of PHP and allows to you switch between 5.2.17 & 5.4.3.

I find that MAMP is less messy than XAMPP.

share|improve this answer
I appreciate the suggestion, but I'm aware of MAMP, Macports, Brew, etc. I'm asking specifically about XAMPP. :P – Only Bolivian Here Jul 20 '12 at 22:35
no worries, I do hope you dont spend too much time trying to solve your problem – Kristian Jul 20 '12 at 23:22

Download the latest binary version of PHP 5.3.2 (make sure to get the .zip package not the installer)

De-archive it to a directory

Copy the contents of the directory in the php subfolder of your XAMPP installation directory, overwriting the files which are already present Overwrite the files which are already present in the apache\bin directory with the newer versions.

Now the trick: take the files which have a "_2" in their names (for example php5apache2_2.dll or php5apache2_2_filter.dll), copy them in the apache\bin subdirectory and remove the "_2" part, overwriting the existing files. This is necessary because by XAMPP uses Apache version 2.2 and the files with the 2 prefix are built for Apache 2.0, so you must take the files build for the newer version (which has a different plugin interface) and rename them in the filenames XAMPP expects.

share|improve this answer
The question is for Mac not Windows! – Saurabh Sharma Apr 2 at 21:02

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.