How to configure Apache to run PHP on OSX
Navigate to: /etc/apache2/httpd.conf and search for php. You should see: Remove the # which is uncommenting that line. Save the file and then restart Apache with the command: As a quick test, if you place a small php file in your web server directory (/Library/WebServer/Documents/) you should be able to run it. The other option… Read More »