AddType application/x-httpd-php .php
PHPIniDir "d:/Program Files/php-5.3.6/"
#LoadModule php5_module "d:/Program Files/php-5.3.6/php5apache2_2.dll"这是我添加的
现在打开文件的话  是出现下载框  貌似apache没有解析  如何改

解决方案 »

  1.   

    #LoadModule php5_module "d:/Program Files/php-5.3.6/php5apache2_2.dll"
    前面的#去掉,然后从其apache
      

  2.   

    #LoadModule php5_module "d:/Program Files/php-5.3.6/php5apache2_2.dll"
    去掉这个注释符。
      

  3.   

    看看你的系统日志出现什么错误,在启动apache的时候. 检查你的php.ini文件是否在你指定的目录内.
      

  4.   

    我去  apache启动不了了···
      

  5.   

    本帖最后由 xuzuning 于 2011-07-21 11:26:50 编辑
      

  6.   


    老大一针见血记得我那会找VC6版本找了N久..
      

  7.   

    将apache的错误日志删除,重新启动,然后把apche错误日志中的内容贴出来看看
    错误日志位置:apache安装目录/logs/error.log
      

  8.   

    LoadModule php5_module D:/Program Files/php-5.3.6/php5apache2_2.dll
    PHPIniDir "D:/Program Files/php-5.3.6/"不过貌似目录不能带空格的。
      

  9.   

    你们实际做过吗?不要想当然!
    再次确认:php-5.3.6-nts-Win32-VC9-x86.zip 包中并没有 php5apache2_2.dll 文件
      

  10.   

    [Thu Jul 21 09:58:26 2011] [notice] Child 3840: Child process is running
    [Thu Jul 21 09:58:27 2011] [notice] Child 548: Released the start mutex
    [Thu Jul 21 09:58:27 2011] [notice] Child 3840: Acquired the start mutex.
    [Thu Jul 21 09:58:27 2011] [notice] Child 3840: Starting 64 worker threads.
    [Thu Jul 21 09:58:27 2011] [notice] Child 3840: Starting thread to listen on port 80.
    [Thu Jul 21 09:58:31 2011] [notice] Child 548: All worker threads have exited.
    [Thu Jul 21 09:58:31 2011] [notice] Child 548: Child process is exiting
    [Thu Jul 21 10:44:20 2011] [notice] Parent: Received restart signal -- Restarting the server.
    [Thu Jul 21 10:44:20 2011] [notice] Child 3840: Exit event signaled. Child process is ending.
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
    [Thu Jul 21 10:44:20 2011] [notice] Apache/2.2.17 (Win32) configured -- resuming normal operations
    [Thu Jul 21 10:44:20 2011] [notice] Server built: Oct 18 2010 01:58:12
    [Thu Jul 21 10:44:20 2011] [notice] Parent: Created child process 5656
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
    [Thu Jul 21 10:44:20 2011] [notice] Child 5656: Child process is running
    [Thu Jul 21 10:44:21 2011] [notice] Child 3840: Released the start mutex
    [Thu Jul 21 10:44:21 2011] [notice] Child 5656: Acquired the start mutex.
    [Thu Jul 21 10:44:21 2011] [notice] Child 5656: Starting 64 worker threads.
    [Thu Jul 21 10:44:22 2011] [notice] Child 3840: All worker threads have exited.
    [Thu Jul 21 10:44:22 2011] [notice] Child 3840: Child process is exiting
    [Thu Jul 21 10:44:22 2011] [notice] Child 5656: Starting thread to listen on port 80.
    [Thu Jul 21 11:11:24 2011] [notice] Parent: Received restart signal -- Restarting the server.
    [Thu Jul 21 11:11:24 2011] [notice] Child 5656: Exit event signaled. Child process is ending.
    httpd.exe: Syntax error on line 129 of D:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load D:/Program Files/php-5.3.6/php5apache2_2.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3  
    [Thu Jul 21 11:11:24 2011] [warn] (OS 995)由于线程退出或应用程序请求,已中止 I/O 操作。  : winnt_accept: Asynchronous AcceptEx failed.
    [Thu Jul 21 11:11:25 2011] [notice] Child 5656: Released the start mutex
    [Thu Jul 21 11:11:26 2011] [notice] Child 5656: All worker threads have exited.
    [Thu Jul 21 11:11:26 2011] [notice] Child 5656: Child process is exiting
      

  11.   

    http://www.baidu.com/s?wd=php5apache2_2.dll+into+server%3A+\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\&rsv_bp=0&n=2&inputT=343
      

  12.   

    LoadModule php5_module "d:/php/php5apache2_2.dll"
    PHPIniDir "d:/php/"
    AddType application/x-httpd-php .php这三句话增加了以后就无法启动apache了  
    php-5.2.17-nts-Win32-VC6-x86.zip现在用的是这个版本···
      

  13.   

    LoadModule php5_module "d:/php/php5apache2_2.dll"改为LoadModule php5_module D:/php/php5apache2_2.dll
    不需要引号
    我的也是5.2.17-nts-VC6
      

  14.   

    #LoadModule php5_module "d:/Program Files/php-5.3.6/php5apache2_2.dll"前的 '#'号去掉,重启APACHE,另外确认一下php5apache2_2.dll的路径是否正确
      

  15.   

    php-5.3.6 有 php5apache2_2.dll 吗?
      

  16.   

    再确认一下当前操作系统中的VC编译器版本是否为VC9
      

  17.   


    确实是没有这个文件,建议改为PHP5.3.3或者更低版本即可
      

  18.   

    或者改为IIS+PHP5.3.6也是可以的
      

  19.   

    那个是我刚截图的啊我自己的
    我现在加入那三行代码apache就无法启动  怎么办啊··
      

  20.   

    LoadModule php5_module  D:/www/php5.3.1/php5apache2_2.dllPHPIniDir "D:/www/PHP5.3.1"AddType application/x-httpd-php . php . phtml我这样写的,当时有每空格就错误了。。你试试