Posted by news on 11/15/05 18:28
Our old Apache and PHP, in httpd.conf we have the following:
#
# These types cause httpd to let the PHP interpreter handle files
with
# the specified extensions.
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml .bkk
..html
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3 .bkk .html
AddType application/x-httpd-php3-source .phps
</IfModule>
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml .php .bkk .html
</IfModule>
This obviously has allowed us to process .bkk and .html files as PHP.
We're migrating to a new server with Apache 2.0.52 and PHP 4.3.9, and I
can't find in httpd.conf anything that looks like that. In fact, a file
search comes up with NO reference of PHP in httpd.conf. (I know PHP
works fine because I can make a phpinfo.php page with phpinfo() and it
shows up just fine.)
Where in httpd.conf can I put something that will tell it to treat .bkk
and .html as PHP files?
Thanks for any advice!
Liam
[Back to original message]
|