手册上用的是2.0.*的Apache.我用的是2.2.2版.问题会不是出在这.

解决方案 »

  1.   

    If you use Apache 2.2.x, the included DLLs (php4apache2.dll and php5apache2.dll) will not work for you as they are specific to the Apache 2.0.x API. There is an open bug report to address this issue but if you can't wait then go to the following URL and download an appropriate DLL for Apache 2.2.x:* http://apachelounge.com/The PHP Group does not endorse this site but it appears useful, so use it :-)# Mail: [email protected]
    # Home: http://www.apachelounge.com/
    #
    #
    # Runs only with PHP 5.1.x with Apache 2.2 !!# Install:- Copy php5apache2.dll to your php folder (eg. c:/php)- Copy httpd.exe.manifest to apache2/bin- Finally install the Visual C++ 2005 Redistributable Package (the binary is build with VC 2005).  
      Download it from:  http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en  When you have already installed the .NET framework 2 you can skip this step.
    # Add to your httpd.confLoadModule php5_module "c:/php/php5apache2.dll"
    AddType application/x-httpd-php .php# configure the path to php.ini
    PHPIniDir "C:/php"Note: Remember to substitute the c:/php for your actual path to PHP in the above examples.
    Enjoy,Steffen