An error occurred while configuring Apache and php.

Source: Internet
Author: User
An error occurred while configuring Apache and php! I downloaded Apache2.2 and php5.3 (my system is win7). I have installed Apache2.2 and php5.3, but I have configured httpd for Apache. I only need to add the LoadModulephp5_module & quot; D: phpphp5apache2_2.dll & quot; PHPIniDir & quot; D: An error occurred while configuring Apache and php!
I downloaded Apache2.2 and php5.3 (my system is win7). I have installed them after the download, but I only need to add these two sentences when configuring the httpd. conf file of Apache.
LoadModule php5_module "D:/php/php5apache2_2.dll"
PHPIniDir "D:/php"

After Apache is restarted, the "the requested operation has failed" error is reported. I have carefully checked Lu Jin and the file. why? Thank you for your advice.


------ Solution --------------------
Loadmodule php5_module "c:/php5/php5apache2. dll"
PHPinidir "c:/php5/php. ini"
Addtype application/x-httpd-php. php

I remember.
------ Solution --------------------
Discussion

Big buddy, help! no one will do it?

------ Solution --------------------
LoadModule php5_module "D:/php/php5apache2_2.dll"
PHPIniDir "D:/php"
Are you sure you have php5apache2_2.dll in the path?
------ Solution --------------------
Must I add this sentence, "D:/php/php5apache2_2.dll? This should be okay.
------ Solution --------------------
PHP code
PHPIniDir "D:/php"LoadModule php5_module D:/php/php5apache2_2.dll
  
   AddType application/x-httpd-php .phpAddType application/x-httpd-php .php3AddType application/x-httpd-php-source .phps
  

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.