Для этого следует добавить в файл .htaccess строку:AddHandler application/x-httpd-php .php .htm .html .phtml