Apache 2.2.14 - Parse PHP in HTML Files

Discussion in 'Apache' started by Iron Mike, Mar 19, 2010.

  1. #1
    Hi,

    I cannot seem to get Apache 2.2.14 to parse PHP in HTML files - this has worked well in the past, but now I am running Apache 2.2.14 on ZendServer.

    Here's what I tried to add to my Apache configuration:

    AddType application/x-httpd-php .php .htm .html
    AddHandler application/x-httpd-php .php .htm .html

    AddHandler x-httpd-php .html

    AddHandler application/x-httpd-php5 .php .html
    AddType application/x-httpd-php5 .htm .html .php

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    AddHandler x-httpd-php5 .htm .html .php
    AddType x-httpd-php5 .php .htm .html

    AddHandler php-script .php .html .htm
    AddHandler php-script .php .html .htm

    AddHandler php5-script .php .html .htm
    AddType php5-script .php .html .htm


    I tried all of these and it does not work.

    On my last installation of WAMP Server (Apache 2.2.11) AddType application/x-httpd-php .php .htm .html worked just fine...

    Any idea ?

    Thank you.

    - M
     
    Iron Mike, Mar 19, 2010 IP