apache2.2.x does not support php5.1.x solutions

Source: Internet
Author: User

Recently installed Apache server, found apache2.2 unexpectedly can not match up with php5.1.6, search on the Internet, found some solutions, now pasted as follows:

1. Download, install

2. If Apache error message: The Apache service named reported the following error:

>>> httpd.exe:Syntax error on line C:/Program Files/apache Software foundation/apache2.2/conf/httpd.conf : Cannot load C:/php5/php5apache2.dll into Server:xd5xd2xb2xbbxb5xbdxd6xb8xb6xa8xb5xc4xc4xa3xbfxe9xa1xa3

At present, apache2.2 is not very supportive of php5.1.x, there are two solutions:

(1) Oneself in Windows compiles php5.1.x and the Apache source code package, to novice difficulty is bigger.

http://www.php.net/manual/en/install.windows.building.php

(2) to http://snap.php.net download php5.2.x Windows binary package, the Php5apache2_2.dll file in the bag copy to the php5.1.x directory.

Download address (right-click Download): http://www.discuz.net/attachment.php?aid=45910

Note Change this line loadmodule php5_module .../php5/php5apache2_2.dll

3. If not, the following are the solutions:

Download Http://www.phpv.net/php5apache2.dll-php5.1.x.rar and unzip. A total of three files.

Vcredist_x86.exe

Php5apache2.dll

Httpd.exe.manifest

1. Php5apache2.dll cover your original PHP directory php5apache2.dll files.

2. Copy the Httpd.exe.manifest file to the Bin folder under your Apache installation directory.

3. Double-click to run Vcredist_x86.exe installation. (If you can't install Vcredist_x86.exe, download a. NET Framework 2 loaded, of course, you don't have to reload Vcredist_x86.exe.) )

Restart apache2.2

4. If you can not try more than a few times to repair the way to install Apache.

5, if could not bind to address 0.0.0.0.:80 No listening sockets available,shutting down unable to open logs error hint, may be sky PE and other software occupies 80 ports, with Netstat-a, Netstat-na look at the port situation; Another possibility is that your Apache is open, and you will see this error when you open it again, and look at whether there is a httpd.exe process in the process.

Test whether the installation was successful

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.