Correction of Wampserver Port

Source: Internet
Author: User
Modification of the Wampserver port
Port is occupied, how to say 80 instead of 90?
httpd.conf file to change that?
#
# Listen on specific IP addresses as shown below to
# Prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [:: 0]:80
#
# Dynamic Shared Object (DSO) support
#
#
# ServerName gives the name and port, the server uses to identify itself.
# This can often is determined automatically, but we recommend you specify
# It explicitly to prevent problems during startup.
#
# If Your host doesn ' t has a registered DNS name, enter its IP address here.
#
ServerName localhost:80
Hostnamelookups OFF

In the httpd-ssl.conf file
Listen 443
##
# # SSL Global Context
##
# # All SSL configuration In this context applies both to
# # The main server and all ssl-enabled virtual hosts.
##


# General setup for the virtual host
DocumentRoot "C:/apache24/htdocs"
Se Rvername www.example.com:443
ServerAdmin [email protected]
errorlog "C:/apache24/logs/error.log"
Transferlog "C:/apache24/logs/access.log"
# SSL Engine Switch:
# enable/disable SSL for this virtual host.
Sslengine on


------Solution----------------------
1. Execute netstat-o-an >c:\ip.txt
2 in cmd. Go to C. Locate Ip.txt, locate the PID of Port =80
3. In Task Manager, see if the PID's process name is httpd.

------Solution----------------------
Listen 0.0.0.0:90
Listen [:: 0]:90
ServerName localhost:90
  • I class= "Layui-icon" >
  • 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.