Iis and apache port 80 cannot be started properly

Source: Internet
Author: User

This article introduces how to prevent apache from being started. apache port occupies port 80 by default, which is commonly used in IIS, thunder and SKYPE will also use port 80, so we can start with these guys.

By default, IIS uses port 80, and thunder and SKYPE also occupy port 80.
If you do not know that port 80 is occupied by the software, if you have installed port 360 security guard, you can use port 360 security guard to find out who is occupied by port 80.

Check whether port 80 is occupied
1) Start-> RUN cmd to enter the command prompt line


2) input: netstat-o-an> C: portInfo.txt


3. Then, access the C drive, find the protinfo.txt file, find the program pid that occupies port 80, and write down the pid.


4) Open the task manager, click "View"/Select column, select "PID (process identifier)", and click the "process" tab to find the pid corresponding to port 80, you can see that the program is occupied. Change the port of the program or end the process.

Today, it is obvious that I have enabled IIS and I am using 2003 server. Because the default port of apache is the same as that of IIS, you need to change it.

You can search for port 80 on this site.

Modify the apache Port
Go to the apache installation directory, find the conf configuration folder, and click Enter to find httpd. conf. You can choose to open it in Notepad mode and press ctrl + f to find

Until you find listen 80, and then change 80 to the port you want to change. Do not change the port used on your computer to OK. Save the change.

Then you need to add http: // 127.0.0.1: 81 (for example, you have changed 80 to 81) under your IP address to browse the Web page on the apache server ).
If you do not want to change the port of the apache server, you can modify the port of other programs. I will not talk about the modification method of the port number of other programs here. The article on modifying the port can also be found in my notes. Good luck to you.


Well, I used port 81 locally, but port 81 is unlikely to be used on the server. So we still use port 80 to solve this problem by changing the ports occupied by other servers.

If iis and apache share port 80, the website under apache uses port 80, IIS uses port 8081, and apache proxy forwards it to port 80.

IIS6, coexistence under multiple IP addresses, IIS is 192.168.0.1, apache is 192.168.0.2 original address
To support/tools/Support. cab under CD 2003. Decompress the httpcfg.exe file and COPY it to the windows/system32/directory.

Command Line

Bound to an IP address: httpcfg set iplisten-I 192.168.0.1
That is, the command uses IIS to only listen to the specified IP address and port
View binding: httpcfg query iplisten
Delete binding: httpcfg delete iplisten-I 192.168.0.1

Command Line
Net stop Apache2
Net stop iisadmin/y
Net START Apache2
Net START w3svc

Make sure that the IP address in iis is set to the global default. If the listen 192.168.0.2: 80 parameter is set to httpconf in Apache, the two services can run simultaneously without conflict.
The IIS access address is http: // 192.168.0.1, And the Apache access address is http: // 192.168.0.2.

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.