I wanted to use postgres with php, and the default install of mac os x, doesn’t have the postgres php modules installed. I tried using the entropy.ch install not realizing that it was incompatible with mac os x 10.6. After removing the entropy code, attempts to render php files responded with a textual representation of the php file.
Share
Additional configuration of php is called out in this line:
Include /private/etc/apache2/other/*.conf
of /private/etc/apache2/httpd.conf
I believe I had accidentally deleted the php configuration file that should be in that directory. I created a file named php.conf and put the following lines into that file:
That enabled apache to set the right mime type on the request, pass it to php which then rendered the code. Painful time wasting mistake.
In addition you need this also: