Apache2.2 prompts cannot load php5apache2. DLL into Server Solution

Source: Internet
Author: User
Php5.16 and apache2.2 Installation Problems in Windows

Today, we have installed the Wamp environment (Windows + apache2 + MySQL + PhP5) in this book. php has a version of 5.16 on the local machine. Use it. Apache is the official download of the latest apache_2.2.8-win32-x86-no_ssl.msi.

All software is installed in the C: \ WWW directory. After installation, the Apache test page is normal. Then add the PHP configuration parameters to httpd. conf,

code highlighting produced by actipro codehighlighter (freeware)
http://www.CodeHighlighter.com/
--> # for PHP 5 do something like this:
loadmodule php5_module " C:/www/PhP5/php5apache2. DLL "
addtype application / x - httpd - php . php

#Configure the path to PhP. ini
Phpinidir"C:/www/PhP5"

 

When you restart Apache, the following message is displayed:

Reference Httpd . EXE : Syntax Error on line 486 Of c :/ WWW / Apache2 / Conf / Httpd . Conf : Cannot load C :/ WWW / PhP5 / Php5apache2 . DLL into Server : \ Xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6

 

 

The solution is as follows:

After reading the reply from the friend below, I checked the version on my machine. The php5apache2_2.dll file was not found. Then download the latest php-5.2.6-win32.zip file, which contains the php5apache2_2.dll file. I didn't try it. I should use loadmodule php5_module C:/PhP5/php5apache2_2.dll, which is much more convenient :)

========================================================== ============

"Change to/php5apache2_2.dll"

========================================================== ============

Loadmodule php5_module C:/PhP5/php5apache2. dll
// Note: C:/PhP5/php5apache2. dll is the corresponding path for installing PHP. Do not confuse php5apache2. dll with php5apache. dll.
Php5apache. dll is only applicable to apache version 1.
Php5apache2. dll in the PhP5 compressed package is only applicable to apache2.0,
If it is 2. 2. * In the above version, "cannot load C:/PHP/php5apache2. DLL into server: the specified module cocould not be found. "Or:" The requested operation has failed ",
Change to/php5apache2_2.dll.

 

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.