Windows PHP Installation path configuration error caused Apache can not start how to solve?

Source: Internet
Author: User

This article mainly introduces the Windows under the PHP installation path configuration error caused Apache can not start the solution, this article can be said to be a quote-triggered tragedy, the need for friends can refer to the

LoadModule php5_module "C (d):/program files/php5/php5apache2_2.dll" PHP installation path caused by Apache cannot start error

Today, when installing a Web service for a colleague's PC, I put all the program files in the installer directory under the requirements of my colleague, so I installed Apache under C:Program files, and PHP was also installed under C:Program files. After installing MySQL, configure the Apache and PHP configuration files, the problem was found in Apache can not start the normal.

For this reason I also unloaded load 1 times apache+php+mysql this environment, but the problem is not accompanied by the focus of the end-the error remains. Depressed ah depressed, think of the previous installed in other places are normal, why did you put it here?

So I set up a new catalogue under D disk, and removed all three sets of systems in front, and then installed them again under D disk. Ann General configuration completed, restart, the normal start.

See that Apache red feather on the green Arrow, I am more depressed, why in the D-plate, in the C disk is not?

Confused for a while and then calmed down to analyze and guess for a while, the estimate problem should be out of the code in Apache to load the running PHP:

The code is as follows:

LoadModule Php5_module C:/programe Files/php/php5apache2.dll

Phpinidir "C:/programe files/php"

Conclusion: Apache will take the content behind the space as a parameter to execute, so C or d:/programe files .... Such a path is clearly not a pass under Apache.

Above in the Windows environment after more than 20 minutes of tossing and drawing is a personal experience, here and share with you, lest everyone make the same mistake as mine

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.