LoadModule php5_module "C (d):/program files/php5/php5apache2_2.dll" PHP installation path caused by Apache cannot start error
Today, when I was installing a Web service for a colleague's PC, I put all the program files in the installer directory under my colleague's request, so I installed Apache under C:\Program Files, and PHP was installed in the C:\Program Files under. 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:
Copy Code code 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.
The above in the past in the Windows environment after more than 20 minutes of tossing is a personal experience, here and you share, lest everyone make the same mistake I did