: This article mainly introduces the Cannotloadphp5apache2_4dllintoserver solution. if you are interested in the PHP Tutorial, refer to it. I. cause 1:
We have installedApacheServer, which is normal at the beginning, but starts again after PHP configuration is installed.ApacheThe requested operation has failed;
ApacheService cannot be started. ViewApacheThe error log contains the following content:
Httpd.exe: Syntax error on line 72 of D :/ApacheSoftware Foundation/Apache2.4/conf/httpd. conf: Cannot load 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
It took me a long time to reload the problem N times to find the corresponding solution. now let's share it with you;
In fact, many tutorials on the Internet have mentioned a lot, but they have not mentioned any ideas. The biggest possibility of this problem is that you have not installed the VC11 runtime library, because all the current 5.5 environments are generated based on the compilation script of vc11. in Windows, you have to install the relevant group msvcr110.dll. if no, you will report an error when double-hitting php.exe. if the following prompt appears, congratulations, the cause of the problem is found:
Apache2_4dll into server solution; ">
II. cause 2:
1. since php 5.5, Windows is not supported;
1. I started thinking for a long time. 1. I didn't find any errors, but I suddenly found myApacheThe PHP version is 2.2, the PHP version is 5.5, and PHP5.5 does not supportApache2.2, so only php5Apache2_4.dll, so I downloaded another PHP5.4, which contains php5Apache2_2.dll, add: LoadModule php5_module "D:/php-5.4.23-Win32-VC9-x86/php5 in httpd. confApache2_2.dll ", problem solving;
IfApache/PHP cannot be started yet, which is most likely a problem with the php5_module module:
1.ApacheThe corresponding PHP module of 2.0 is php5Apache2. dll;
2.ApacheThe corresponding PHP module of 2.2 is php5Apache2_2.dll;
3.ApacheThe corresponding PHP module of 2.4 is php5Apache2_4.dll;
In other words, according to the php5_module module, you can know which php version supports.Apache
So,Apache/PHP can be used in the following situations:
1. php5.2 supportApache2.0 andApache2.2;
2. php5.3 and php5.4 are supported at the same time.Apache2.2 andApache2.4;
3. php5.5 only supportsApache2.4;
Unless you manually compile the php5_module module, the above three options are available;
IfApache/PHP is still out of the control. check whether the php configuration (php.ini?, and whether php.exe prompts an error. Correct the error according to the error prompt;
The above introduces the Cannot load php5apache2_4dll into server solution, including Apache content, and hopes to help friends who are interested in PHP tutorials.