Apache2.2.34 + PHP5.4.3 environment build under windows

        I only recently joined the company, and the work day was so scared that I was shaking! ! Fortunately, my mentor does not dislike me ^ _ ^! The project I want to follow is mainly the official website of a company ’s product. Since this project has been followed by someone for a long time period, some older technologies have not been upgraded yet, so in order to run the project I need to set up the environment first. This took me a lot of time ~ Fortunately, I finally succeeded, so record it here so as not to encounter this situation later. The steps to build and install Apache2.2.34 + PHP5.4.3 under windows are as follows:

       1. Download the file.

        A. Download VC2008 or VC2009. This can be downloaded directly from the official website. I used the 2008 version. After downloading, install it all the way and click next until you know it is complete.

       B. Download Apache. You can also download the corresponding version directly from the official website .

       C. Download the PHP file. This is more troublesome, because PHP5.4.3 is an older version, and there is no official website. It took a long time to find the files. Finally, it is at https://www.anindya.com/php-5-4-3- and-php-5-3-13-x64-64-bit-for-windows / found on this website, I downloaded the 5.4.3 thread-safe version. As shown below.

                                                   

      2. Configuration file, the specific operation can be seen at https://blog.csdn.net/yongh701/article/details/47080057 , the author wrote very detailed, just follow the step by step.

      3. Run the server. It is recommended to use the command line to start the server, so that if the command line window is unsuccessful, there will be a corresponding prompt. Open cmd and run D: \ PHP \ Apache2.2.34 \ Apache2 \ bin> httpd.exe -w -n "Apache2.2" -k start, where D: \ PHP \ Apache2.2.34 \ Apache2 is my own Apache Unzip directory. Also replace "Apache2.2" with your own Apache name. If no errors are reported, the installation was successful.

     If you get an error "(OS 5) access denied.: AH00369: Failed to open the WinNT service manager ...", just run cmd as an administrator.

      

Published 50 original articles · Likes5 · Visits 20,000+

Guess you like

Origin blog.csdn.net/qq_31207499/article/details/93616981
Recommended