Port 80 or 443 (SSL) already in use ! Installing Apache2.2 service failed!的解决方案

来源:互联网 发布:剑三无间长情淘宝 编辑:程序博客网 时间:2024/05/05 17:32

/***************************by Jiangong SUN********************************/

 

问题:安装XAMPP 1.70过程中,报错 : Port 80 or 443 (SSL) already in use ! Installing Apache2.2 service failed!

 

 

在XAMPP Control Panel上,不能正常启动Apache服务。不能登录http://localhost。

原因:某些应用程序或服务,如IIS,Skype等可能占用80端口或443端口。造成Apache不能使用此端口。

解决方案:修改apache使用的端口号。

如:

1)修改xampp/apache/conf/extra/httpd-ssl.conf文件

# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two

#       Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"

#

Listen 443

改成

# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two

#       Listen directives: "Listen [::]:1443" and "Listen 0.0.0.0:1443"

#

Listen 1443;

2)修改xampp/apache/conf/ httpd.conf文件

#Listen 12.34.56.78:80

Listen 80

改成

#Listen 12.34.56.78:800

Listen 800

PS:443,80端口也可以根据需要改成其他端口如2443,8080等。

XAMPP Control Panel中Apache运行正常。

 

 

此时登录http://localhost:800成功。

原创粉丝点击