Apache connection to PHP can not start problem solving ideas

Source: Internet
Author: User
Tags php download vc9

This article mainly introduces the Apache connection PHP can not start problem solving ideas and solutions, simple and practical, the need for small partners can refer to.

Problem: Apache before normal, after the connection configuration after PHP can not start, with the Apache test configration after testing the form of error:

Cannot load D:/php/php5apache2_2.dll into server (or Php5apache2_4.dll)

My personal solution to the trajectory is this:

1 First look at the configuration of the path, spelling is wrong, did not find fault

2 before using Apache has no problem, so I think it is the version of PHP download is not, I started to download is 5.6, the inside module file is Php5apache2_4.dll, so that PHP is no problem, Baidu a search found there may be missing the correct version of the VC library

3 Then, I looked at the PHP package (best officer Net Download) of the file, the filename is VC9 (like, this package I later deleted, but this is not important), and then search the following paragraph:

The compiler used by php5.5 is vc11,php5.4 and php5.3 is vc9,php5.2 is VC6. Also note whether the x86 version or the x64 version. Currently only php5.5 provide x64 version, others are only x86 version.

apache.org download Apache are VC6 versions, otherwise install different runtime libraries according to different file descriptions.

VC11 Runtime x86/x64 version: http://www.microsoft.com/en-us/download/details.aspx?id=30679

VC10 Runtime x86 version: http://www.microsoft.com/en-us/download/details.aspx?id=5555

VC10 Runtime x64 version: http://www.microsoft.com/en-us/download/details.aspx?id=14632

VC9 Runtime x86 version: http://www.microsoft.com/en-us/download/details.aspx?id=5582

VC9 Runtime x64 version: http://www.microsoft.com/en-us/download/details.aspx?id=15336

However, I download the installation of a good VC library, I think can but, but still reported the same mistake ...

4 I downloaded the VC library deleted, and changed a download address tried under, still not, and download VC10 still not, damn it!

5 So, certainly not the VC library problem, also not Apache problem, then or PHP problem. So, I went to the net and downloaded a low version of the PHP5.3.5, decompression found this version of the module file into the Php5apache2_2.dll, and the 5.6 version of the Php5apache2_4.dll, and then downloaded a PHP version, Found no module files inside, Pit!

6 so I judged it might be the problem with this file, so I changed this version of 5.3.5, and it was a success!!!

7 Joy after viewing a Web page opened before, down a roll, incredibly just have to solve the problem description:

If apache/php does not start, it is most likely the problem with the Php5_module module:

1, Apache2.0 corresponding PHP module for the Php5apache2.dll

2, Apache2.2 corresponding PHP module for the Php5apache2_2.dll

3, Apache2.4 corresponding PHP module for the Php5apache2_4.dll

In other words, depending on the Php5_module module, you can tell which Apache the current version of PHP supports

Therefore, the apache/php collocation has the following kinds of situations:

1, php5.2 support Apache2.0 and Apache2.2;

2, php5.3, php5.4 at the same time support Apache2.2 and Apache2.4;

3, php5.5 only support Apache2.4

8 Khan Ah, just one more screen can be more early to solve the problem, remember not to lazy ah.

The above mentioned is the entire content of this article, I hope you can enjoy.

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.