Copy Code code as follows:
LoadModule Php5_module D:/phpdir/php5apache2_2.dll
AddType application/x-httpd-php. php
Where Phpdir is your PHP installation directory, according to the need to change their own can. After you have done this configuration, open Apache, and then create a new index.php file in the Apache Htdocs directory, which reads as follows:
Copy Code code as follows:
<?php phpinfo ();?>
Then in the browser input http://localhost/index.php can display PHP information, this is the normal situation of Apache and PHP integration steps and methods.
However, I recently in the integration of Windows platform when the error occurred (Apapche is 2.2.15, PHP is 5.2.17), in the Apache configuration file to join the PHP module and then open the Apache error, display errors: the requested Operation has failed!
Initially thought it is Apache and PHP version compatibility issue, replaced by PHP low version and high version after the problem remains, the problem is still in the low version of Apache, obviously I this guess to a certain extent is wrong. Later inadvertently changed a PHP version of the Threadsafe, the problem mysteriously disappeared, because the previous has been used non Thread safe version, the original so can also trouble. That is, to integrate on the Windows platform, use the thread safe version of PHP, and do not use the non thread safe version, as to why it is unknown!