Unable to enable PHP in OSX 10.8 mountain lion I have enabled php according to PHP's instructions and uncommented,

#LoadModule php5_module libexec/httpd/libphp5.so


in /private/etc/apache2/httpd.conf. However the line,

#AddModule mod_php5.c


does not exist in that file, nor do any #AddModule lines.  This may be the root of my problem but regardless I restarted apache with,

sudo apachectl restart


and attempted to open ~/Site/page.php

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My First PHP page &lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php echo "&lt;h1&gt; Hello World! &lt;/h1&gt;";?&gt;
&lt;/body&gt;
&lt;/html&gt;


in multiple web browsers.  Safari and Chromium just gave me the raw text of the file and Opera gave me 

Hello World ";?&gt;


Do I need to configure apache to add that module and how do I do that, or is there some other problem?

PS, I couldn't even open page.php with safari when it was in my home directory and other browsers tried to download it.
If the line doesn't exist commented-out, then just add it separately. i.e. put a line in  httpd.conf that reads AddModule mod_php5.c.