Winserver 2012 Wamp building

Time:2020-4-9

Building Wamp environment (non integrated environment) based on Alibaba ecswinserver2012

  1. Download APAche

    • Download address: http://httpd.apache.org/

    • Select the required version and click download

    Winserver 2012 Wamp building

    • Select Windows version

    Winserver 2012 Wamp building

    • Select apachehaus

    Winserver 2012 Wamp building

    • Select the required version and download it

    Winserver 2012 Wamp building

  2. Install Apache

    • Take a look at the Apache directory~

    • Enter the bin directory and execute the command: httpd – K install

    Unfortunately Installation failed:

    Suggestion [3, general]: the command httpd was not found, but it does exist in the current location. By default, windows PowerShell does not
    If you trust this command, type “. Httpd” instead. For more details, see “get help about” command “precedence.

    Well, obviously ~, execute the command again:. Httpd – K install;

    The result is still not good. Vcrentime140.dll is missing.

    Well, in fact, running the latest version of Apache and PHP under Windows requires visual c + + redistributable 2015, so one installation can solve the environment problem.

    Download address: https://www.microsoft.com/en –

    However, the first time I did it, I was not allowed to download it. I was prompted that the current installation settings could not be downloaded.. I’m so tired. Go to IE’s security settings, open the download and download it.

    Remember to restart ~ after installation.

    Restart countdown 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, Bong~

    When I was happy to install again, I jumped into another pit.

    Installing the 'Apache2.4' service
    The 'Apache2.4' service is successfully installed.
    Testing httpd.conf....
    Errors reported here must be corrected before the service can be started.
    httpd.exe: Syntax error on line 39 of C:/Program Files/Apache24/conf/httpd.conf: ServerRoot must be a valid directory
    

    Let’s change the root directory of the server according to the prompts~

    So it was finally installed

    Open the management interface to start Apache.

    My egg, ah, has this error again: the requested operation has failed. I don’t know why.

    • Check if port 80 is occupied, and it’s disappointing that port 80 is not occupied

    • Execute. Httpd – t in Apache / bin. I went there and got an error. I guess I made a mistake when I changed the serverroot

    • After some research, the server root on the inspection side has been changed to apache24, and the new year has been modified~

    • Apache started successfully, localhsot access succeeded

  3. Install MYSQL

    • Download address: http://dev.mysql.com/download

    • Installation:

      What’s wrong with that
      ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)
      It is estimated that the service is started for: Net start mysql. The result is that the service name is invalid. OK
      Mysqld — install and start MySQL on net

  4. Install PHP

    • Download address: http://windows.php.net/downlo

    • Choose your own version to install