Cannot load Php5apache2_4dll into server solution;

Source: Internet
Author: User
I. Reason 1:

We are installing the Apache Server, the beginning of normal, but after the installation of PHP configuration is complete, when the Apache started again when there was a mistake the requested operation has failed;

Apache Service failed to start, view Apache error log, similar to the following content:

Httpd.exe:Syntax error on line d:/apache software foundation/Apache2.4/conf/httpd.conf:cannot L Oad d:/php/php5Apache2_4.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\ Xe9\xa1\xa3

This problem I spent a long time, re-installed n times, only to find the corresponding solution, now let share to everyone;

In fact, many tutorials on the web said a lot, but none of the points, the biggest possibility of this problem is that you do not install the VC11 runtime, because all 5.5 environments are now generated under the VC11-based compilation script, So under Windows you have to install the relevant components Msvcr110.dll, or you double-click the Php.exe test will be error, if the following prompt, then congratulations, the cause of the problem found:

Apache2_4dll into server solution; " >
Two. Reason 2:
1.php 5.5 does not support windows2003 at the beginning;
1. began to think for a long time, 1 straight did not find the error, behind the sudden discovery of my Apache version is 2.2,php version is 5.5,php5.5 does not support Apache2.2, so only php5 Apache2_4.dll, and then went to download a PHP5.4, which contains the php5Apache2_2.dll, added in httpd.conf:LoadModule php5_module "d:/ PHP-5.4.23-WIN32-VC9-X86/PHP5Apache2_2.dll ", problem solving;

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 php5Apache2.dll;
2.Apache2.2 corresponds to the PHP module for php5Apache2_2.dll;
3.Apache2.4 corresponds to the PHP module for php5Apache2_4.dll;

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

Therefore, theApache/php collocation has the following several situations:

1.php5.2 supports Apache2.0 and Apache2.2;
2.php5.3, php5.4 also support Apache2.2 and Apache2.4;
3.php5.5 only supports Apache2.4;

Unless you manually compile the Php5_module module, you can only have the above 3 kinds of choices;

If Apache/php still fails to boot, check if the PHP configuration (php.ini) is present and run Php.exe with no prompt error. Correct the error according to the error;



The above describes the cannot load Php5apache2_4dll into server solution, including the Apache content, hoping to be interested in PHP tutorial friends helpful.

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