After "LoadModulephp5_module" and "PHPIniDir" are configured in the httpd. conf file of apache

Source: Internet
Author: User
Tags apache php
After "LoadModulephp5_module" and "PHPIniDir" are configured in the httpd. conf file of apache, apache php cannot be started.

Apache version: httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
Php version: php-5.5.5-Win32-VC11-x64.zip

The added configuration file is as follows:
LoadModule php5_module "D:/PHP/php5apache2_4.dll"
PHPIniDir "D:/PHP"
AddType application/x-httpd-php. php. html. htm

It can be started successfully after I remove the above configuration. Is it the apache version? Please help me.


Reply to discussion (solution)

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

Think for Yourself

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

Think for Yourself

Try another 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 unavailable

X86... x64

?...... Catch chicken ......


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

Think for Yourself

Try another version.

Finally, we can continue. I finally changed the version. thanks for the prompt.

Apache version: httpd-2.4.6-win64-VC11.zip
: Http://www.apachelounge.com/download/

PHP version: VC11 x64 Thread Safe (00:30:13) php-5.5.5-Win32-VC11-x64.zip
: Http://windows.php.net/download/


Start apache:
1、httpd.exe-k install

2. set ServerRoot in the httpd. conf file

32.16httpd.exe-k start

4. set the DocumentRoot attribute in the httpd. conf file.

5. run httpd.exe-k start again.

Write it out to avoid detours like me.

Is Apache 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.