I’m running a PHP website locally using WebMatrix. This site uses PHP within *.html files. By default, WebMatrix doesn’t allow this. How do I configure WebMatrix so that the PHP runs?
(note that I’m answering my own question)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to edit the file:
(For example, “C:\Users\Marcus\Documents\IISExpress\config\applicationhost.config”)
You’ll notice a line like this:
You can add other file extensions by adding new lines:
It’s important that you give each <add /> element a unique ‘name’ attribute.