在httpd.conf里加    AddType application/x-tar .tgz
    AddType image/x-icon .ico
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php .shtml
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php3-source .phps
    Action application/x-httpd-php "/php/php.exe"然后重启apache

解决方案 »

  1.   

    如果 feyge(菲戈@我是永远向着远方独行的浪子)的那个还不好用,在他的那几行前面再加一行ScriptAlias /php/ "C:/PHP433/"记得把C:/PHP433/换成你的php的安装路径,再 重启apache
      

  2.   

    同意楼上的.你最好去WWW.PHP.NET看看.里边有详细的配置文挡
      

  3.   

    你是用配置CGI方式呢,还是配置模块方式呢.
    要是CGI方式就在http.conf是写以一下代码:
    scriptAlias /php4/ "c:/php/"
    Action application/x-httpd-php4 "/php4/php.exe"
    Addtype application/x-httpd-php4/ .php
      

  4.   

    scriptAlias /php4/ "c:/php/"
    Action application/x-httpd-php4 "/php4/php.exe"
    AddType application/x-httpd-php .phtml
      

  5.   

    謝謝各位熱心關注﹐我昨晚回家﹐終于把它安裝好了。用binary msi install,在source版本copy  "php4apache2.dll" 過來﹐簡單再配置httpd.conf就好了