我放了一个php文件http://localhost/index.php,昨天运行一切正常,今天开机什么也没有改呀,再看http://localhost/index.php时,就提示
" 找不到网页 
您要查看的网页可能已被删除、名称已被更改,或者暂时不可用。 
--------------------------------------------------------------------------------
请尝试以下操作:
如果您已经在地址栏中输入该网页的地址,请确认其拼写正确。
打开 localhost 主页,然后查找指向您感兴趣信息的链接。 
单击后退按钮,尝试其他链接。 
单击搜索,寻找 Internet 上的信息。 
HTTP 404 - 未找到文件
Internet Explorer 
"
可是在http://localhost/img/001.gif里有小图片可以看,应该说明apache在运行吧,那是因为什么所有的php文件都找不到了呢?(文件都在!)

解决方案 »

  1.   

    好像你的apache不能解析php文件,检查一下你的httpd.conf配置文件。
      

  2.   

    (1)
    apache的目录下
    logs\error.log贴出相关的内容来
    (2)
    从前ntfs的分区,由于目录权限被改,出现过类似问题..
      

  3.   

    C:/php4
    [Fri Apr 04 08:50:33 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 08:50:34 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 08:50:35 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 09:39:48 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 09:39:48 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 09:39:49 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 09:39:50 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 09:39:50 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
    [Fri Apr 04 09:39:51 2003] [error] [client 127.0.0.1] script not found or unable to stat: C:/php4
      

  4.   

    httpd.conf配置里面。关于支持php的那段配置信息,贴来看看。
      

  5.   

    ScriptAlias /php/ "C:/php/" 
    AddType application/x-httpd-php4 .php 
    AddType application/x-httpd-php4 .php3 
    AddType application/x-httpd-php4 .php4 
    Action application/x-httpd-php4 "/php/php.exe" 
    是不是最下面的那个??我的php放在c:/php/下了,为什么logs\error.log里写的C:/php4??
      

  6.   

    改成: AddType application/x-httpd-php .php 
    AddType application/x-httpd-php .php3 
    AddType application/x-httpd-php .php4 
    Action application/x-httpd-php "/php/php.exe
    php 程序不要和 PHP 解释器放到同一个目录
    放到别的目录下面去,比如 Apache/Htdocs
      

  7.   

    Action application/x-httpd-php "/php/php.exe“
      

  8.   

    ScriptAlias /php/ "c:/php/" 
    AddType application/x-httpd-php .php 
    AddType application/x-httpd-php .php3 
    AddType application/x-httpd-php .php4 
    Action application/x-httpd-php "/php/php.exe"