Windows PHP Installation path configuration error causes Apache to not start the workaround _linux

Source: Internet
Author: User

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

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.