首先 Xampp启动会先探测端口,所以要改动Xampp启动配置文件
位置:/opt/lampp/xampp
把
if test $ssl -eq 1 && testport 443
改成
if test $ssl -eq 1 && testport 8443
然后再改动Apache启动443端口监听
位置:/opt/lampp/etc/extra/httpd-ssl.conf
Listen 443
前面加#注释
# Listen 443
再启动Apache就不会被端口占用而不能启动了
80端口位置
/opt/lampp/etc/httpd.conf