PHP5.20 + Apache2.2.3 configuration problems in Windows

Source: Internet
Author: User
PHP installation directory for PHP5.20 + Apache2.2.3 in Windows: D: php5.2.0httpd. the related PHP settings in conf are: LoadModule & nbsp; php5_module & nbsp; & quot; d: php5.2.0php5apache2. dll & quot; PHPIniDir & nbsp; & q: PHP5.20 + Apache2.2.3 configuration problems in Windows
PHP installation directory: D: \ php5.2.0
The related PHP settings in httpd. conf are as follows:
LoadModule php5_module "d:/php5.2.0/php5apache2. dll"
PHPIniDir "d:/php5.2.0 /"

But why is it always unsuccessful? after commenting the two lines, it can be started again ....
Help me. I just learned PHP.

------ Solution --------------------
LoadModule php5_module "d: \ php5.2.0 \ php5apache2. dll"
PHPIniDir "d: \ php5.2.0 \ php. ini"
Make sure that php. ini is in this directory. change httpd. conf and try again.
------ Solution --------------------
LoadModule php5_module "% PATH %/php/php5apache2_2.dll"

AddType application/x-httpd-php. php
PHPIniDir "% PATH %/php"


Change % PATH % to your actual PATH

Optimistic about whether apache version is 2.0 or 2.2

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.