Parsing PHP in HTML/HTM Documents

2 posts / 0 new
Last post
#1 Sat, 05/04/2013 - 10:36
kg4san

Parsing PHP in HTML/HTM Documents

I came across this problem a few days ago, and after searching, and reading several answers on the web from this forum and others, I've found the simple solution that can be handled through the Virtualmin interface.

  1. Navigate to your virtual host
  2. Expand Services
  3. Select Configure Website
  4. Here you have a couple of choices. You can configure the option for the entire Virtual Host, or on a per-directory basis. I prefer restricting as much as possible while remaining functional, so I selected the websites root directory (/var/www/vhosts/{domain name}/htdocs) for the per directory setting.
  5. Now select MIME Types
  6. Here you can configure any extentions you want to be parsed by the suPHP in Virtualmin. See the attached image for an example of how I setup my configuration.
  7. Make sure to click save.

That's pretty much it, don't forget to click Apply Changes in the upper right corner after you have things setup the way you want them.

Wed, 02/04/2015 - 13:37
jmunjr

I don't see an attached image... Curious what precisely needs to be entered

Topic locked