|  | Posted by Norman Peelman on 12/07/07 02:56 
Gary Hasler wrote:> I want apache to parse all .html files for php code.  Our 'real' web
 > server is rented from ICDsoft ( php 5 on Apache on Linux whatever), and
 > their instruction is to add the following to the .htaccess file:
 > AddHandler application/x-httpd-php .html
 > ...which works great.
 >
 > However, our local in-office server for testing and viewing our sites is
 > Apache 2.0.55 with PHP 4.4.4 on Windows XP Pro.  I have read everything
 > I can find, and have tried adding the following to the httpd.conf file,
 > in every combination I can think of:
 > AddHandler application/x-httpd-php .html
 > and / or:
 > AddType application/x-httpd-php .php .html
 >
 > but the page just gets sent as html without the php code being parsed at
 > all (and yes, I do restart Apache after each change).  What am I doing
 > wrong?
 >
 > (Here's what httpd.conf contained before--note that it works just fine
 > for .php files:)
 > ScriptAlias /php/ "c:/php/"
 > LoadModule php4_module "c:/php/php4apache2.dll"
 > AddType application/x-httpd-php .php
 > Action application/x-httpd-php "/php/php.exe"
 > PHPIniDir "C:/php"
 
 
 Also take a look at the 'AccessFileName' directive. It's a directive
 that allows you to change the name of .htaccess files if you so desire.
 
 ---
 Norm
  Navigation: [Reply to this message] |