Apache cannot start problem solving after connecting PHP, apachephp_php tutorial

Source: Internet
Author: User
Tags php download vc9

Apache cannot start problem solving after connecting PHP, apachephp


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

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

My personal solution is this:

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

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

3 Then, I looked at the PHP package (the best last Officer Web download) file, the filename of the hint is VC9 (as if, this package I later also 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 pay attention to the x86 version, or the x64 version. Currently only php5.5 offers x64 versions, others are only x86 versions.

apache.org downloaded Apache is the VC6 version, otherwise you can install different runtime libraries according to different file instructions.

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 downloaded the installation of the VC library, thought can but, but still reported the same error ...

4 I downloaded the VC library deleted, and changed a download address tried, still not, and download VC10 still no, Mom!

5 Then, certainly not the VC library problem, is not the problem of Apache, then the problem of PHP. So, my last officer net and downloaded a low version of the PHP5.3.5, decompression found that this version of the module file became Php5apache2_2.dll, and 5.6 version is Php5apache2_4.dll, and then downloaded a PHP version, Found inside no module file, Pit!

6 So I can judge the problem of this file, so change 5.3.5 this version, NEMO, succeeded!!!

7 Joy While viewing a previously opened Web page, roll down, there is just a description to solve this problem:

If apache/php does not start yet, 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 know which Apache the current version of PHP supports

Therefore, the apache/php collocation has the following situation:

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 Sweat, just a little more than one screen can solve the problem earlier, remember not lazy ah.

The above mentioned is the whole content of this article, I hope you can like.

http://www.bkjia.com/PHPjc/1019069.html www.bkjia.com true http://www.bkjia.com/PHPjc/1019069.html techarticle Apache connection PHP can not start problem resolution, apachephp problem: Apache before normal, connection configuration after PHP can not start, with Apache Test configration test after the error form: ...

  • 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.