What port is occupied by Apache?
Solution to Apache’s 443 port being occupied
I wanted to make a PHP program today, but when I started Apache, the console reported that port 443 was occupied. The reason is that my virtual machine VMware occupies port 443 for connecting to the remote server. In fact, it is normal for these situations to occur. Because different programs are likely to need a port to maintain their services at the same time. I write here to tell you the solution for beginners.
First of all, port 443 is the HTTPS port. Apache will of course start it as a local server, but the port is occupied. Mine is occupied by VMware, and it may also be occupied by programs such as Skype, so the method is very simple. Modify the port.
Enter the Apache installation directory, search for httpd-ssl.conf, and right-click the text to open it. Look for 443 to be replaced with other uncommon port numbers, such as 442. Next, you can start Apache normally.
There are also some situations, such as IIS installed on the computer, and the port 80 conflicts with the two. The solution is the same, but the configuration file that should be opened is httpd.conf.
Recommended learning:Apache Tutorial
The above is the detailed content of What ports does apache occupy?. For more information, please follow other related articles on the PHP Chinese website!