You are here: setting Apache up to process an extension as PHP « PHP Programming Language « IT news, forums, messages
setting Apache up to process an extension as PHP

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация