打开httpd.conf
找到
<IfModule dir_module>
    DirectoryIndex index.php index.html 
</IfModule>改成上面的样子(用空格分隔index.php和index.html) 
重启apache 
楼主好运

解决方案 »

  1.   

    服务器不支持PHP类型的MIME请求,,试着打开 httpd.conf 
    <IfModule mime_module>
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php .php6
    </IfModule>
      

  2.   

    实在不行就在 php里面写 header("content-type:text/html; charset=gb2312");另外劳烦各位帮我投下票,参加的是 myspace.cn 和 csdn 搞得比赛:
    http://myspace.csdn.net/ShowProductDetail.aspx?ID=21
      

  3.   

     #
        # Filters allow you to process content before it is sent to the client.
        #
        # To parse .shtml files for server-side includes (SSI):
        # (You will also need to add "Includes" to the "Options" directive.)
        #
        #AddType text/html .shtml
        #AddOutputFilter INCLUDES .shtml
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
      

  4.   

    关键在这里:查找 # LoadModule foo_module modules/mod_foo.so 
    在此行后加入一行 
    LoadModule php5_module C:/php5/php5apache2_2.dll 
    //注意:其中C:/php5/php5apache2.dll是你安装php的相应路径. 
    不要把php5apache2_2.dll和 php5apache2.dll混淆.php5apache_2.dll只适用于apache 版本2的. 
      

  5.   

    打开httpd.conf
    找到
    <IfModule dir_module>
        DirectoryIndex index.php index.html
    </IfModule>改成上面的样子(用空格分隔index.php和index.html)
    重启apache
    楼主好运我的就是这样解决的。