How can I load php5apache2_2.dll when Apache is started?

Source: Internet
Author: User
Tags apache log

Today, the apache environment is configured in windows 2003, but the apache Log prompts that php5apache2_2.dll cannot be loaded. This problem is strange. Later I found it a problem with the compiling environment, next I will introduce the steps to solve this problem.


Installation environment

Wampserver cannot be started after being installed in Windows 2003 (32-bit. An error occurred while loading the php module:

12 The Apache service named reported the following error:
>>> Httpd.exe: Syntax error on line 127 of E:/wamp/bin/apache/apache2.2.22/conf/httpd. conf: Cannot load E:/wamp/bin/php/php5.3.13/php5apache2_2.dll into server: failed.

When I saw this error, I suddenly felt overwhelmed. Why can't I load this file? The vc2010 Runtime Library is also installed.

Solution

1. An error occurred while loading the php5apache2_2.dll path or the php5apache2_2.dll file does not exist in your php installation directory.

Troubleshooting solution: Open the httpd. conf file of apache and find LoadModule php5_module "D:/Program Files (x86)/Web/PHP/php5apache2_2.dll" to check the path and spelling errors.

2. If vc ++ 2008 is missing, you can download and install it in the release package.

32-bit: Microsoft 2008 C ++ Runtime (x86)

64-bit: Microsoft 2008 C ++ Runtime (x64)

If you do not know which one to install, install both. Currently, php Binary source code of php.net is x86, which can be seen from the name of the compressed package and Installation File. Therefore, you can download the c ++ 2008 runtime environment of the x86 version.

3. You may have installed a 64-bit version of apache. Note that php on windows can only be used with a win32 version of apache, so do not install apache on win64.

4. install apacheVC10 SP1 vcredist_x86.exeIf you cannot install apache, download and install it.

My questions

In the past, wampserver was unable to be installed. At that time, it was the run library of VC10 that was directly installed. Now the installation is successful and cannot be started. At the beginning, it was always considered a problem with iis, later, when I checked the Event Viewer error and found that it could not be loaded, I did not find any problems for all the reasons. At this time, I suddenly thought about whether it was because vc2008 was not installed. Download and install it.

Conclusion,If you are using windows2003 or php5.2.18, use php of vc6. You can download an editor for vc9.

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.