apache2.2 and php5.2.17 Error resolution for the integration process under Windows _linux

Source: Internet
Author: User
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!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.