Forum Moderators: coopster

Message Too Old, No Replies

Virtual hosting broke my embedded php

         

quasi

2:18 am on Jan 18, 2008 (gmt 0)

10+ Year Member



I have two sites on a computer and I'm using virtual hosting to access them. One site works fine. The other ignores all embedded php.

A normal php file "test.php" will run, any php in a .html file is ignored.
The broken site was in a subdirectory of the other before and everything worked fine then.

Any suggestions?

quasi

3:38 am on Jan 18, 2008 (gmt 0)

10+ Year Member



Okay,
I added the:
AddType application/x-httpd-php .html

line into httpd.conf and it seemed to have fixed things.

However, can somebody tell me why the embeded php worked fine for two years without that line?

Thanks

coopster

3:47 am on Jan 18, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Your hosting provider updated the configuration?

quasi

3:18 pm on Jan 18, 2008 (gmt 0)

10+ Year Member



I host the site from home.

eelixduppy

7:36 pm on Jan 18, 2008 (gmt 0)



Not sure why it would have been working like that for two years without problem and then suddenly stop working without actually changing your configuration for your apache server. I don't see another way, if you are really interested you might have luck in the apache forum as it would be something specific to apache and not php itself.

quasi

10:16 pm on Jan 18, 2008 (gmt 0)

10+ Year Member



Actually the site directory that worked before STILL worked. It was only the recently added site directory that did not.