看到这一行:
Apache/2.0.50 (Win32) Server at 192.168.0.180 Port 80
楼主的php应该是安装成cgi模式的,对不?
问题就出在这里了
解决办法是,首先将httpd.conf中的php cgi模式的配置注释掉,然后加这一行就可以了.
loadmodule php4_module /yourPHPPath/isapi/php4apache2.dll(具体名字或目录不一定对,但大体就在这个位置,楼主自己找找)

解决方案 »

  1.   

    恩,有不少问题,基本上php的CGI模式已经没有人用了,这样即不能发挥php的优势,对安全也没好处,所以建议改成apache的module方式安装.
    比如发送一个401的请求到Broser,就会出现以上错误,楼主可以自己试试
      

  2.   

    什么都不用重装,只要改一下http.conf,然后重新启动apache就可以了.
    具体的是,先把apace中的将php配置成apache安装的CGI模式那几行去掉,然后加上
    AddModule php4_module phpApache2ModulePath
    同时确认httpd.conf有以下几行.
    DirectoryIndex index.html,index.php,index.php ...AddType application/x-httpd-php .php ...
    就可以了
      

  3.   

    to  screend(流浪小子):
    同时确认httpd.conf有以下几行.
    DirectoryIndex index.html,index.php,index.php ...AddType application/x-httpd-php .php ...
    就可以了
    ===============================================
    只要确认这两行就可以了吗??????