PHP Learning notes 2--Installing Apache problems

Source: Internet
Author: User

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

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.