apache directive for executing php code from inside html?

Discussion in 'Installation/Configuration' started by manarak, Sep 4, 2009.

  1. manarak

    manarak New Member

    is there an apache directive that can be put in vhost.conf in order to execute php code contained in files with extension .html ?
     
  2. till

    till Super Moderator

    If the site uses mod_php, add the following line to the apache directives field:

    AddType application/x-httpd-php .php .php3 .php4 .php5 .html
     
  3. manarak

    manarak New Member

    it does!

    thanks, I'll try that.
     

Share This Page