Page 1 of 1

Configure php4 on apache over windows 2k

Posted: Fri Dec 13, 2002 10:25 am
by macaco_5
Hi all!

The firts, i'm beginner.
I have installed php4 with apache, but i have one doubt:
- If i execute http//localhost/script.php, Apache execute the php code but if the extension file is .html it doesn't, Why??? What is the difference???

example:
script.php
<?php
phpinfo();
?>

Posted: Fri Dec 13, 2002 1:32 pm
by sublevel4
check your apache config file and see what extensions(.php, .htm, .html). I forget right off the top of my head what is it listed as. I had the same problem until i figured out that .html was missing in mine.

Posted: Fri Dec 13, 2002 1:37 pm
by Johnm
Look for this:

Code: Select all

AddType application/x-httpd-php .php .php3 .html


John M