可能是Apache 的httpd.conf配置问题

解决方案 »

  1.   

    你配置的最后一行:
    ScriptAlias /php4/ "D:/php4/" AddType application/x-httpd-php4 .php
       AddType application/x-httpd-php4 .php3
       AddType application/x-httpd-php4 .php4
    //最后一行
     Action application/x-httpd-php4 "d:/php4/php.exe"
    //你注意到最后没有:"d:/php4/php.exe"
    改为:
    Action application/x-httpd-php4 "/php4/php.exe"
    就OK了!!!
    给分吧!!我的分太低了我要需要提问的分,谢谢合作
    有问题找我,最好是把你文章的ID也一起给我!!!
      

  2.   

    你不要加D,你停止Apache服务在打开试试,应该就OK了!!
    你知道:ScriptAlias /php4/ "D:/php4/"的意思吗??
    如果你知道的话就应该知道你的最后一行不要加d了
      

  3.   

    恩,知道:那么,我设置ScriptAlias /php4/ "D:/php4/"Action application/x-httpd-php4 "php.exe"而且,php.exe的文件名就是D:/php4/php.exe
    应该可以了吧?
      

  4.   

    这一行有误:
    Action application/x-httpd-php4 "php.exe"
    改为:
    Action application/x-httpd-php4 "/php4/php.exe"
    编程要细心!!!切忌
      

  5.   

    ScriptAlias /php4/ "D:/php4/" AddType application/x-httpd-php4 .php
       AddType application/x-httpd-php4 .php3
       AddType application/x-httpd-php4 .php4
    Action application/x-httpd-php4 "/php4/php.exe"
    这样就行了?还有BindAddress和Servername应该怎么设置?
      

  6.   

    还是不行,html文件可以,但PHP就错误:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.--------------------------------------------------------------------------------Apache/1.3.24 Server at 108.108.99.66 Port 80
      

  7.   

    不知道你改了什么鸟,你把Apache卸掉,把Apache目录里的文件都干掉,重新安装Apache,再修改配置文件,你只须在最后加:
    ScriptAlias /php4/ "D:/php4/"
    AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php3
    AddType application/x-httpd-php4 .php4
    Action application/x-httpd-php4 "/php4/php.exe"
    即可,如果目录有改动自己酌情修改,
      

  8.   

    出现错误....我想想....你以前装过旧版的PHP吗?
    你最近是不是升级到了新版的PHP?
    请问你把新的php4ts.dll复制到system32下了吗?....我上次出了一次错,就是因为这个了.
    或者你就按我写的装一遍吧.(我帖在你另一帖了)
      

  9.   

    你的问题我在相关的帖子里写的很详细了去看看吧
    你的httpd.conf文件里加上这样一句话
    LoadModule php4_module c:\php\php4apache.dll 
    然后在system32中加入php4apache.dll动态库,同时根换你的php.exe文件
    你的问题完全是版本的问题,建议你多到php.net上去下载相关的资料和动态库文件