Apache httpd.conf files cannot be started after configuring "LoadModule Php5_module" and "Phpinidir"

Source: Internet
Author: User
Tags apache php
Apache PHP

Apache Version: Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
PHP Version: Php-5.5.5-win32-vc11-x64.zip

The additional configuration files are as follows:
LoadModule php5_module "D:/php/php5apache2_4.dll"
Phpinidir "d:/php"
AddType application/x-httpd-php. php. html. htm

When I remove the above configuration, I can start it successfully. is the Apache version of the problem? Please do a favor to the master.


Reply to discussion (solution)

Apache Version: Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
LoadModule php5_module "D:/php/php5apache 2_4.dll"

Self-pondering

Apache Version: Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
LoadModule php5_module "D:/php/php5apache 2_4.dll"

Self-pondering

I'll try a different version.

Apache Version: Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
PHP Version: Php-5.2.5-x64-2007-11-12.zip

LoadModule php5_module "D:/php/php5apache2_2.dll"
Phpinidir "d:/php"
AddType application/x-httpd-php. php. html. htm

Still not.

X86...x64

?...... Catching chickens ...


Apache Version: Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
LoadModule php5_module "D:/php/php5apache 2_4.dll"

Self-pondering

I'll try a different version.

Finally, it's still possible. Eventually changed the version, thank you for the hint.

Apache Version: Httpd-2.4.6-win64-vc11.zip
Download Address: http://www.apachelounge.com/download/

PHP Version: VC11 x64 Thread Safe (2013-oct-17 00:30:13) php-5.5.5-win32-vc11-x64.zip
Download Address: http://windows.php.net/download/


To start Apache:
1. Httpd.exe-k Install

2. Set the ServerRoot in the httpd.conf file

3, Httpd.exe-k start

4. Set the DocumentRoot property in the httpd.conf file

5. Then execute httpd.exe-k start again

Write to avoid the small white like me less detours.

Apache with 64-bit?

  • 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.