问题: 过程中,
问题:安装 XAMPP 1.70 过程中,报错 : Port 80 or 443 (SSL) already in use ! Installing Apache2.2 service failed! 在 XAMPP Control Panel 上,不能正常启动 Apache 服务。不能登录 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 443 改成 # Note: Configurations that use IPv6 but not IPv4-mapped addresses need two # # 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 等。 Listen directives: "Listen [::]:1443" and "Listen 0.0.0.0:1443" Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
XAMPP Control Panel 中 Apache 运行正常 此时登录 localhost:800 成功。