Not sure if this question applies to SO so don\'t yell at me if it doesn\'t...
I\'ve gotten rid of XAMPP and trying to do everything in os x. I followed many guides
You must have the following configuration in /etc/apache2/httpd.conf
in order to have PHP working:
LoadModule php5_module libexec/apache2/libphp5.so
AddType application/x-httpd-php .php
After that run sudo apachectl restart
and PHP should start working. Note that the file /usr/libexec/apache2/libphp5.so
must be present as well.