HTML as PHP
From Hostek.com Wiki
Revision as of 17:37, 3 March 2015 by Maxm (Talk | contribs) (Created page with "__FORCETOC__ ==Steps to process HTML as PHP== Sometimes you may want to process PHP code inside your .html files. To do this, follow these simple steps for Windows 2008/IIS...")
Contents
Steps to process HTML as PHP
Sometimes you may want to process PHP code inside your .html files. To do this, follow these simple steps for Windows 2008/IIS 7.5 servers:
- Open IIS
- Expand Server name in IIS
- Click Sites
- Find the site you want to change
- Double click the site in the Center Pane
- Open Handler Mappings
- Open the entry for "PHP_via_FastCGI", and copy the text in the "Executable" field, then click "Cancel" in the popup.
- Click the "Add Module Mapping" link on the left"
- Enter "*.html" (no quotes) for the Request Path
- Choose "FastCgiModule" as the Module type
- Paste the text you copied earlier into the "Executable" field
- Enter "HTML_via_FastCGI" as the Name, and click OK