How to modify the troubleshooting port when apache cannot be started under wamp

Source: Internet
Author: User
Tags iis root directory

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.

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.