I did: port install php5 +apache2 +mysql5 cd /opt/local/apache2/modules /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so and restarted apache2 But I still see no reference to mod_php anywhere, and php files are still treated as text by the browser. What am I missing, here?