The INSTALL file included with the PHP distribution has instructions on how to make Apache pass PHP scripts to the PHP interpreter. Briefly, you add lines like the following to your Apache configuration file (for example, httpd.conf
):
AddType application/x-httpd-php5 AddType application/x-httpd-php5 .phtml