Parsing PHP in .htm/.html files

michelle

New member
Joined
May 25, 2004
Messages
2
Location
South Africa
Would this be possile and safe to do for 1 of our users on the DA raq:

To have the server parse PHP code in your .html and .htm pages

- Click on the MIME Types icon
- In the "MIME Type" field type or paste this:

application/x-httpd-php

- In the "Extension(s)" field type the extension
you wish to have parse PHP code (ex: .html)
- Click the Add button

Question: what file should I backup before I add an MIME type or is it not necessary?.

thank you in advance
Michelle
 
I'm not sure how this is handled by DA, but I'm guessing they get stored in the user's httpd.conf in:
/usr/local/directadmin/data/users/[username]/httpd.conf. Though if I were you, I probably wouldn't back up anything at all.
 
the users httpd.conf file (/usr/local/directadmin/data/users/username/httpd.conf)

But if it doesn't work out you should be able to just remove the entry and have it working again :)
Don't think you need to go to such extents as backing it up, since if its messed up you can just use the template to rebuild it.
 
Back
Top