Php5apache2_2.dll was APPACEH httpd.conf loading error The requested operation has failed

Source: Internet
Author: User
Tags vc runtime vc9

PHP5.4 Apache Mysql collocation and multi-site configuration in detail when the operation occurs such a problem
is to change the Apacehe HTTP Server2.2 Program Configuration conf folder under the httpd.conf load LoadModule php5_module written:
LoadModule php5_module "D:/system_php/php5.4/php5apache2_2.dll" Save error when restarting Apache the requested operation has Failed
Note: Where D:/system_php/php5.4/php5apache2_2.dll is my path to install PHP.
Apache for Httpd-2.2.21-win32-x86-no_ssl.zip version
PHP is php-5.4.0rc4-win32-vc9-x86.zip version.

error when starting Apache "Cannot load Php5apache2_2.dll into server"
Apache Restart appears the requested operation has failed this wrong solution

the cause of the error occurred:
on the internet to find a friend encountered a similar situation, and prompted according to the PHP installation file name "Php-5.3.6-win32-vc9-x86.zip" that the version of the PHP installation files are compiled by VC, so if you need to run or call the PHP package related files , you need to install the VC's run-time environment first. If your machine does not have a VC runtime environment installed, Apache will prompt you with the error message when it calls the associated file in the PHP package.
Workaround:
Search the Web for "VC2008 redistributable" or "VC2008 runtime" to resolve this failure after downloading the installation.
other causes and workarounds for this error:
cause: Because of the Apache version, the corresponding "Php5apache2.dll" is different, if you load the wrong "Php5apache2.dll", you will be prompted with the error message.
Example: If you are using version Apache2.2, this error occurs when you use the statement "LoadModule php5_module modules/php5apache2.dll" to load PHP. The configuration of this code should be modified to "LoadModule php5_module modules/php5apache2_2.dll" or "LoadModule php5_module" D:/php/php5apache2_2.dll " ”。

    • Summarize:
      Apache2.2 Correspondence Php5apache2_2.dll
      Apache2.1 Correspondence Php5apache2.dll
      Apache1 Correspondence Php5apache.dll
      For these reasons, assuming that the installation of Apache2.2 and installed PHP5.0 that will be wrong, in the installation of Apache and PHP should choose the version corresponding to configure the installation.

Php5apache2_2.dll was APPACEH httpd.conf loading error The requested operation has failed

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.