暑假来了,想学PHP。就下载了些,可总是配置不好。大家帮我看看是怎么回事吧。
   HTTPD 里面是这样的,   
   
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .txt
    AddType application/x-httpd-php .html
ERROR LOG 里面是这样的。[Sun Jul 27 10:22:17 2008] [notice] Child 796: Starting 64 worker threads.
[Sun Jul 27 10:22:17 2008] [notice] Child 796: Starting thread to listen on port 80.
[Sun Jul 27 10:22:23 2008] [error] [client 127.0.0.1] script 'E:/Apache2.2/htdocs/phpinfo.php' not found or unable to stat
[Sun Jul 27 10:22:23 2008] [error] [client 127.0.0.1] File does not exist: E:/Apache2.2/htdocs/favicon.ico, referer: http://localhost/phpinfo.php/
[Sun Jul 27 10:22:24 2008] [error] [client 127.0.0.1] script 'E:/Apache2.2/htdocs/phpinfo.php' not found or unable to stat
[Sun Jul 27 10:22:24 2008] [error] [client 127.0.0.1] File does not exist: E:/Apache2.2/htdocs/favicon.ico, referer: http://localhost/phpinfo.php/
现在主要的问题是,当我放了一个<?php
phpinfo();
?>在HTDOCS 里面时,在浏览器里输入http://localhost/phpinfo.php/却显示着
Not FoundThe requested URL /phpinfo.php/ was not found on this server.请问大家,我怎么弄啊?真的是菜鸟问题。

解决方案 »

  1.   

    找不到phpinfo.php这个资源你的server是apache么?改了端口没有?[Sun Jul 27 10:22:17 2008] [notice] Child 796: Starting 64 worker threads. 
    [Sun Jul 27 10:22:17 2008] [notice] Child 796: Starting thread to listen on port 80. 写着80端口占用哦,IIS和apache抢端口了
      

  2.   

    soory,把第三行的error看成第二行了。[Sun Jul 27 10:22:23 2008] [error] [client 127.0.0.1] script 'E:/Apache2.2/htdocs/phpinfo.php' not found or unable to stat这样的话应该检查目录在httpd配置是否正确,如果server是iis,iis是否配置php模块成功?
      

  3.   

    我把端口改成了81,Listen 81
    然后在浏览器内输入http://localhost:81/   显示出来IT WORKS,应该是有效了
    可是当我输入http://localhost:81/phpinfo.php,还是现实找不到啊。
      

  4.   

    我解决了,不是端口冲突的问题。而是在建立PHPINFO.PHP 时产生的问题。
    谢谢你哈