Which warrior knows my Apache2.4.3 Why do I start an error cannot load Php5apache2_4.dll into server?

Source: Internet
Author: User
Tags vc9
The software I use is:
Httpd-2.4.3-win32.zip
Php-5.4.9-win32-vc9-x86.zip
Php5apache2_4.dll in PHP 5.4.9 folder in Php5apache2_4.dll-php-5.4-win32.zip
Configuration Reference http://deloz.net/1000000568.html This article
Also installed the Microsoft Visual C + + SP1 Redistributable Package (x86) patch
The problem is: When starting Apache, cannot load Php5apache2_4.dll into server error
Put the LoadModule php5_module "D:/php/ext/php5apache2_4.dll" in the httpd.conf file
Plus #,apache can start, but PHP can't run.


Reply to discussion (solution)

D:/php/ext/php5apache2_4.dll
Does it really exist?

What does this php5apache2_4.dll-php-5.4-win32.zip mean?

D:/php/ext/php5apache2_4.dll is a real existence, php5apache2_4. Dll-php-5.4-win32.zip is because PHP now does not provide the VC9 version of the, for the Apache of a DLL, probably this meaning.

Just said wrong PHP now does not provide VC6 version of the, moderator help me to think of ways AH!

You're supposed to be here. http://windows.php.net/download/#php-5.4

Under this section
VC9 x86 Thread Safe (2012-nov-21 21:22:38)
Zip [22.32MB] Download this
Sha1:84aa190dc73605c22045e8e2f2281908478076e4

That's where I downloaded it. Zip [22.32MB] The file name of the download is php-5.4.9-win32-vc9-x86.zip.

LoadFile Php5ts.dll in front?

No, how to load, I was in accordance with the above description of the article configured, do not know that the article is not correct.

###################### PHP content starts #############################
#设置PHPRC变量, to provide PH5 to find the configuration file php.ini, there is no need to run to%systemroot% down to find php.ini
SetEnv PHPRC "... /php5/"
Phpinidir "... /php5/php.ini "

#加载php5ts. dll, which both Apache and IIS must have since the link library
LoadFile "... /php5/php5ts.dll "

#加载php5的apache模块
LoadModule php5_module "... /php5/php5apache2_4.dll "

#为了兼容添加php3和php4的类型
AddType application/x-httpd-php. php
AddType application/x-httpd-php. php3
AddType application/x-httpd-php. PhP4


###################### PHP content End #############################

LoadFile "D:/php/php5ts.dll" (add this sentence, restart the computer or not to Apache)
LoadModule php5_module "D:/php/ext/php5apache2_4.dll"
Phpinidir "d:/php/"

I also found a way to get out of Apache.
LoadFile "D:/php/php5ts.dll"
#LoadModule php5_module "D:/php/ext/php5apache2_4.dll"
#PHPIniDir "d:/php/"

In my memory, just use PHP's own Apache DLL on the line, note that the TS version on the line
Check your php.ini. There is no error, first the unnecessary DLL first commented out, open the test individually
(You can run PHP directly in the DOS window, you will be prompted in the INI the items are outdated)
In addition, some module DLLs are related, MB seems to be placed in front

Almost forget the light, I basically save the configuration file, re-install is also very convenient, anyway, are green

As if the previous version of php5.3 can use PHP's own Apache DLL, this website will not have the VC6 version, with PHP own will not be. The test now is that the LoadFile command in Apache is invalid, and the DLL is not read in any folder that it is placed in.

Php-5.4.9-win32-vc9-x86.zip offer Php5apache2_4.dll?
Only Php5apache2_2.dll and Php5apache2_3.dll are available.

Searched the Php5apache2_4.dll.
It feels like you're doing this, http://www.cnblogs.com/cxybjfu/archive/2012/10/09/2716880.html.
Using unofficial Apache and Php5apache2_4.dll.
Naturally the consequences are self-esteem

There are many errors in the presentation of the article, saying that using VC9 compiled PHP, you must use VC9 compiled Apache

I'm using VC6 's Apache 2.2 plus VC9 php5.3, php5.4.

Finally apache2.4 up, download the Microsoft Visual C + + Redistributable Package (x86) This file, address http://www.microsoft.com/en-us/ Download/details.aspx?id=29. I guess I made the mistake of being the Microsoft Visual C + + SP1 Redistributable Package (x86). Thank you for your help!

......
Very without words, incredibly is this problem, I installed the system when the full version of the VC

What is the official download of PHP is compressed package? It's not installed? I also met this man's problem, PHP only Php5apache2_4.dll, no php5apache2_2.dll. I can't relate to it.

First manually run the PHP directory under the Php.exe file, the new version because of the need for VC support, if not installed will prompt Msvcr110.dll can not find, install VC can solve
To install VC11 related components, please go to http://www.microsoft.com/zh-CN/download/details.aspx?id=30679 download
No error after the configuration of the http.conf file, load Php5apache2_4.dll (this represents the 2.4 version of Appache), if the 2.2 Apache to load 2.4 of the supporting files, will be error cannot load Php5apache2_4.dll into server
LoadModule php5_module "D:/php/php5apache2_4.dll"
Phpinidir "d:/php/"
I was encountering this problem, using 2.2 Apache to load 2.4 of files, upgrading Apache to 2.4 after the problem solved
http://www.apachelounge.com/download/apache2.4 version Download address

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