PHP development environment is a headache for beginners to learn PHP's first problem, many children's shoes in order to save time often directly installed Wamp integrated software, so that although the convenience of the novice children's shoes, but, personally, this for learning PHP and later understanding of the PHP principle will cause considerable distress, Many children's shoes and even the coding process errors will not be resolved, because it is not known that the environment is wrong or coding error.
Apache Official website: http://httpd.apache.org/
The official website only provides the source code download, does not provide the Windows under the binary file, therefore needs to download the compiled binary file in the third party, officially recommended Apachehaus.
Steps:
- Download the zip archive and unzip the package.
- Modify the apache24\conf\httpd.conf,32 line Define srvroot "\apache24" to Define srvroot "C:\amp\Apache24", where C:\amp is the decompression path.
- CMD switch into C:\amp\Apache24\bin, enter command installed to system service: Httpd-k install.
- No error, and the browser input http://192.168.66.100/display It works page to identify the Apache environment installation success.
Build Apache+php+mysql Environment under Windows