After downloading Apache,
Run cmd as Administrator:
1.httpd-k Install
2.httpd-k start
There is an issue that cannot be run, possibly because port 443 is already in use.
In my machine, VMware is installed, and a process in VMware takes up 443 ports;
However, the Apache service uses port 443 by default, which causes it to fail to start properly.
Workaround:
1.netstat-a-o Find PID for processes that occupy 443 ports
2. In the process manager, according to the PID to find the corresponding process, and then end the process and then restart httpd.
There are several ways to start Apache after a successful installation:
1.winkey+r call up the running window, enter the Services.msc Open the Service Management window, find Apache corresponding service, start.
2. Run cmd as administrator in which the command to enter net start apache2.4 relative to the stop Apache is net stop apache2.4 (the service name will vary in the actual operation)
Find the path to the Httpd.exe in 3.cmd, or set its bin directory to the PATH environment variable, enter HTTPD to launch Apache
4. Locate the ApacheMonitor.exe visual start or stop Apache service in the Apache Bin directory
PHP Learning notes 2--Installing Apache problems