PHP 5.4.17 is loaded in the latest preview of OSX 10.9 Mavericks and needs to be turned on by uncommenting a line in the httpd.conf file.
sudo vi /etc/apache2/httpd.confSearch for
phpthis will land you on the right line then uncomment the line:
LoadModule php5_module libexec/apache2/libphp5.soReload apache to kick in
sudo apachectl restartTo see and test PHP, create a file name it
phpinfo.phpand file it in your document root with the contents below, then view it in a browser.
<?php phpinfo(); ?>
Casiano Rodriguez León 2015-01-07