In Windows, how does one solve Apache failure caused by incorrect PHP installation path configuration? _ PHP Tutorial

Source: Internet
Author: User
In Windows, how does one solve Apache failure caused by incorrect PHP installation path configuration ?. In Windows, how does one solve Apache failure caused by incorrect PHP installation path configuration? This article describes how to solve the problem that Apache cannot be started due to incorrect PHP installation path configuration in Windows. how can this problem be solved if Apache cannot be started due to incorrect PHP installation path configuration in Windows?

This article mainly introduces how to solve the problem that Apache cannot be started due to incorrect PHP installation path in Windows. This article can be said to be a quotation mark-induced tragedy. For more information, see

LoadModule php5_module "C (/D):/Program Files/php5/php5apache2_2.dll" apache startup error caused by PHP Installation Path

Today, when I installed and deployed web services on a PC of a colleague, I put all program files under the program files directory as my colleague requested. so I installed apache to c: under \ program files, php is also installed under c: \ program files. After installing MySql and configuring the configuration files of apache and php, start again and find that Apache cannot be started normally.

For this reason, I uninstalled and reinstalled the apache + php + mysql environment once again, but the problem did not end with the reinstallation-the error still persists. When it comes to being depressed, it's normal to remember that it was previously installed in another location. why isn't it possible to install it here?

As a result, I created a directory under drive D, deleted all the three systems installed earlier, and re-installed it on drive D. After the general configuration is completed, restart the instance. this time the instance is started normally.

I was even more depressed when I saw a green arrow on the Red Feather of apache. why is the row on drive D not on drive C?

After a while, I calmed down and analyzed and guessed it for a while. it is estimated that the problem is that apache loads and runs php code using modularity:

The code is as follows:

LoadModule php5_module C:/programe files/php/php5apache2. dll

PHPIniDir "C:/programe files/php"

Summary: Apache will execute the content after the space as a parameter, so the path C or D:/programe files... is obviously not accessible under apache.

The above is my personal experience after over 20 minutes of hard work in Windows. I would like to share with you to avoid making the same mistake as me.

Why? This article mainly introduces the solution to Apache failure caused by incorrect PHP installation path configuration in Windows...

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.