Apache2 & PHP4

From: Date: Fri, 20 Dec 2002 09:32:16 +0000
Subject: Apache2 & PHP4
Groups: php.general 
Request: Send a blank email to php-general+get-128970@lists.php.net to get a copy of this message
OK, so I've spent the last 2 or 3 hours looking on the net for this. Can anyone tell me the proper way (with Apache 2.0.40) to instruct apache to process .htm and .html files? I've tried: In /etc/httpd/conf/httpd.conf :: AddType application/x-httpd-php .php AddType application/x-httpd-php .html And also in /etc/httpd/conf.d/php.conf :: AddType application/x-httpd-php .php AddType application/x-httpd-php .html Neither appears to work or affect anything at all. I have also tried: <Files *.html> SetOutputFilter PHP SetInputFilter PHP </Files> ... in the php.conf file, but my guess is that this wouldn't work unless something like the AddType points to PHP to begin with. Can anyone give me some ideas? I'm just fine with Apache 1.3, but RH8 ships with Apache2 and I thought I'd try it ... Chase

« previous php.general (#128970) next »