Php has been around for sometime. For sanity check this may help some. Why is this important? The default mavericks has both apache and php5.4 installed. The downside of this is php5.4 on mavericks does not have the built in imap module. I recommend method 1. For those who use homebrew for mac, method 2 is also available.
Method 1
In mac maverick terminal, run…
> curl -s http://php-osx.liip.ch/install.sh | bash -s 5.4
Ref: http://php-osx.liip.ch/
*note: default php installation using liip.ch has error_reporting enabled in php. (on mac it is located in usr/lin/php.ini)
Method 2
In mac maverick terminal, run…
> brew tap homebrew/dupes
> brew tap homebrew/versions
> brew tap josegonzalez/homebrew-php
> brew update
> brew options php55
> brew install php55