Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

some other programer before me made some changes on server, and now if i call html files, they are treated as php.

if html file like that have included css it is also treated as php, and it makes problems... they tryed to connect to mysql database, despite the thing that in those css are no line of php...

can you give me some advice what to check, or to set (ie. in .htaccess) to escape that?

thank you in advance!

share|improve this question
up vote 2 down vote accepted

Look for AddType, as in AddType application/x-httpd-php .php .html.
To undo this, use AddType text/html .html. That can be done in a .htaccess file according to the Apache documentation

share|improve this answer
i need that html is parsed as php. but is it possible to set that css is parsed as css? – user48058 Aug 28 '10 at 11:32
You should alter DefaultType` text/plain` if your CSS get interpreted as HTML. That's usually defined in httpd.conf. – Lekensteyn Aug 28 '10 at 19:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.