Check the Apache configuration file (httpd.conf). Check that it has a line like:
AddType application/x-httpd-php .php
Note that this line may be included from a subsidiary configuration file for the PHP configuration. If it is missing, either include it in the Apache configuration file, or in the subsidiary configuration file for PHP, if one exists.