Wamp has a Port 80 Test function. We only need to run the Port detection tool that comes with wamp-> Apache-> Service-> Test Port 80 apace.
Your port 80 is actually used:
Server: Microsoft-HTTPAPI/2.0
Press Enter to exit...
Well, it's really the expensive congratulations of the two Microsoft companies...
Google "Microsoft-HTTPAPI/2.0", and the first one indicates the service "SQL Server Reporting Services (SQLSERVER2012)". Note that the brackets are slightly different based on your SQL version.
Right-click it, disable it, and stop it.
In addition to this problem, if you install iis on port 80, you can modify the iis or apache port.
When XAMPP is started, if Port 80/443 is occupied, you can modify the port of this software.
Open the C:/Program Files/xampp/apache/conf/httpd. conf file and change 80 to 8080;
1. Modify the Apache configuration file
# Vi/etc/httpd/conf/httpd. conf
# Listen 12.34.56.78: 80
Listen 80 // If port 80 is retained, make it exist. Otherwise, use # to comment it out;
Listen 8080 // New Port. You can add more ports;
If you only use an independent host, you only need to use the above configuration if you do not use a virtual machine.
2. Add the following configurations if you are using a virtual machine;
NameVirtualHost *: 8080 // Configure the virtual machine Port. If other ports are used, add the new port on the Listen
Include conf/vhost _ *. conf // virtual machine configuration file
The configurations of the VM corresponding to port 800 are as follows:
<VirtualHost *: 800>
ServerAdmin webmaster@dummy-host.com # site master email address
DocumentRoot/var/www/web1 # define the root directory of the website and store the webpage under this directory
ErrorLog logs/dummy-host.com-error_log # Error logs are stored here
CustomLog logs/dummy-host.com-access_log common # customer log
</VirtualHost>
After the configuration is complete, run/etc/rc. d/init. d/httpd restart and enter localhost: 800 in the browser to view the content of the virtual host on the port.